Prevent ncurses input queue from breaking by cleaning KEY_RESIZE asap

This commit is contained in:
Andrzej Rybczak
2016-12-09 04:08:53 +01:00
parent 31b2c7f55f
commit 2e0de374a3
3 changed files with 7 additions and 27 deletions

View File

@@ -199,6 +199,8 @@ void resizeScreen(bool reload_main_window)
rl_resize_terminal();
endwin();
refresh();
// Remove KEY_RESIZE from input queue, I'm not sure how these make it in.
getch();
}
MainHeight = LINES-(Config.design == Design::Alternative ? 7 : 4);