From: Arun Prakash Jana Date: Fri, 28 May 2021 22:10:00 +0000 (+0530) Subject: Fix condition X-Git-Tag: v4.1~16 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=6bb6ddfe8a6f5f13bdd5b7f0dfdfd2842ac5a3d5;p=nnn.git Fix condition --- diff --git a/src/nnn.c b/src/nnn.c index 544067f0..eef972f4 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -6011,8 +6011,8 @@ static void redraw(char *path) g_state.dircolor = 0; } - /* Go to first entry */ - if (i < ndents) { + /* Go to last entry */ + if (onscreen < ndents) { move(xlines - 2, 0); addch('v'); }