mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Fix: crash on entering empty dir, then press down
This commit is contained in:
parent
4f233c161a
commit
94a233b808
|
@ -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…
Reference in a new issue