From 6bb6ddfe8a6f5f13bdd5b7f0dfdfd2842ac5a3d5 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 29 May 2021 03:40:00 +0530 Subject: [PATCH] Fix condition --- src/nnn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); }