mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-12 17:08:39 -09:00
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.
This commit is contained in:
parent
9c9d466752
commit
a87e90c3c2
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue