nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 94a233b808e039d1a17aab4e12f1b1fb13302d54
parent 4f233c161ae205ae818801e6d86071933d4f5c4a
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Fri, 17 Jan 2020 03:36:57 +0530

Fix: crash on entering empty dir, then press down

Diffstat:
Msrc/nnn.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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); }