From a87e90c3c2f5390176bf7562eb71b8d3913d6c2b Mon Sep 17 00:00:00 2001 From: Yorhel <git@yorhel.nl> Date: Sat, 18 Aug 2012 08:47:39 +0200 Subject: [PATCH] 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. --- src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.c b/src/main.c index d50c53f..2b103ae 100644 --- a/src/main.c +++ b/src/main.c @@ -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; } -- GitLab