Browse Source

Fix: crash on entering empty dir, then press down

master
Arun Prakash Jana 5 years ago
parent
commit
94a233b808
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/nnn.c

+ 1
- 1
src/nnn.c View File

@@ -4380,7 +4380,7 @@ static void redraw(char *path)
if (g_states & STATE_MOVE_OP) { if (g_states & STATE_MOVE_OP) {
g_states &= ~STATE_MOVE_OP; g_states &= ~STATE_MOVE_OP;


if (last_curscroll == curscroll)
if (ndents && (last_curscroll == curscroll))
return draw_line(path, ncols); return draw_line(path, ncols);
} }




Loading…
Cancel
Save