diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-01-17 03:36:57 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-01-17 03:36:57 +0530 |
commit | 94a233b808e039d1a17aab4e12f1b1fb13302d54 (patch) | |
tree | 0e282b1653f7e63d8b2f6efe72a326956721a909 /src | |
parent | 4f233c161ae205ae818801e6d86071933d4f5c4a (diff) | |
download | nnn-94a233b808e039d1a17aab4e12f1b1fb13302d54.tar.gz |
Fix: crash on entering empty dir, then press down
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |