mirror of
https://github.com/jarun/nnn.git
synced 2025-03-12 17:54:04 +00:00
Fix: crash on entering empty dir, then press down
This commit is contained in:
parent
4f233c161a
commit
94a233b808
1 changed files with 1 additions and 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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue