From: Arun Prakash Jana Date: Thu, 16 Jan 2020 22:06:57 +0000 (+0530) Subject: Fix: crash on entering empty dir, then press down X-Git-Tag: v3.0~76 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=94a233b808e039d1a17aab4e12f1b1fb13302d54;p=nnn.git Fix: crash on entering empty dir, then press down --- diff --git a/src/nnn.c b/src/nnn.c index 5dd47ce1..0cd723be 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -4380,7 +4380,7 @@ static void redraw(char *path) if (g_states & STATE_MOVE_OP) { g_states &= ~STATE_MOVE_OP; - if (last_curscroll == curscroll) + if (ndents && (last_curscroll == curscroll)) return draw_line(path, ncols); }