Skip to content
Snippets Groups Projects
Commit cd38a62a authored by Yorhel's avatar Yorhel
Browse files

Clear errno before getch()

Fixes #128.
parent ec0de4af
No related branches found
No related tags found
No related merge requests found
......@@ -86,6 +86,7 @@ int input_handle(int wait) {
return wait == 0 ? 1 : 0;
nodelay(stdscr, wait?1:0);
errno = 0;
while((ch = getch()) != ERR) {
if(ch == KEY_RESIZE) {
if(ncresize(min_rows, min_cols))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment