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

main.c: Revert nodelay() status after calling ncresize()

This fixes a bug where ncdu would stop scanning a directory if the
terminal window has been resized to a small enough space that the
warning would show up.
parent 9c9d4667
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,8 @@ int input_handle(int wait) {
if(ch == KEY_RESIZE) {
if(ncresize(min_rows, min_cols))
min_rows = min_cols = 0;
/* ncresize() may change nodelay state, make sure to revert it. */
nodelay(stdscr, wait?1:0);
screen_draw();
continue;
}
......
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