]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix condition
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 28 May 2021 22:10:00 +0000 (03:40 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 28 May 2021 22:10:00 +0000 (03:40 +0530)
src/nnn.c

index 544067f0adde58c4356b734abf7dea43eb1c8f44..eef972f4c3e4595fdf5f6c0e712f6a3df085930f 100644 (file)
--- 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');
        }