illwill icon indicating copy to clipboard operation
illwill copied to clipboard

If terminal is too small, error thrown

Open codic12 opened this issue 3 years ago • 3 comments

Not really a bug, but I get something like:

/home/user/e.nim(71)     e
/home/user/e.nim(66)     main
/home/user/e.nim(44)     updateScreen
/usr/lib/nim/system/fatal.nim(49) sysFatal
Error: unhandled exception: value out of range: -1 notin 0 .. 9223372036854775807 [RangeDefect]

whenever I resize the screen to something too small. this makes sense, and I know I can error handle it, but I'm curious where it occurs so that I could avoid blanket error handling all of it? Maybe Illwill could throw a better error

codic12 avatar May 18 '21 22:05 codic12

Based on the stacktrace, this seems to be happening in your code, not in illwill.

johnnovak avatar Jul 20 '21 03:07 johnnovak

I can see it in the examples though.

codic12 avatar Jul 20 '21 05:07 codic12

I can see it in the examples though.

Ok I'll have a look at them.

johnnovak avatar Jul 20 '21 07:07 johnnovak