aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-01-17 03:36:57 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-01-17 03:36:57 +0530
commit94a233b808e039d1a17aab4e12f1b1fb13302d54 (patch)
tree0e282b1653f7e63d8b2f6efe72a326956721a909 /src
parent4f233c161ae205ae818801e6d86071933d4f5c4a (diff)
downloadnnn-94a233b808e039d1a17aab4e12f1b1fb13302d54.tar.gz
Fix: crash on entering empty dir, then press down
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 5dd47ce..0cd723b 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);
}