Fix: crash on entering empty dir, then press down

This commit is contained in:
Arun Prakash Jana 2020-01-17 03:36:57 +05:30
parent 4f233c161a
commit 94a233b808
No known key found for this signature in database
GPG key ID: A75979F35C080412

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);
} }