Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If terminal is too small, error thrown #23

Open
codic12 opened this issue May 18, 2021 · 3 comments
Open

If terminal is too small, error thrown #23

codic12 opened this issue May 18, 2021 · 3 comments

Comments

@codic12
Copy link

codic12 commented May 18, 2021

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

@johnnovak
Copy link
Owner

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

@codic12
Copy link
Author

codic12 commented Jul 20, 2021

I can see it in the examples though.

@johnnovak
Copy link
Owner

I can see it in the examples though.

Ok I'll have a look at them.

@johnnovak johnnovak reopened this Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants