aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-09-28 22:13:33 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-09-28 22:13:33 +0530
commit51009f82414262340aa861d55abdd78ebfcb370d (patch)
treef39f01c658cdc5e4328fa101a38213ac25f12086 /src
parent627c5cfc36461dc20f1e8c903148324fa15b063b (diff)
downloadnnn-51009f82414262340aa861d55abdd78ebfcb370d.tar.gz
Fix #744
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 82a80eb..5110a14 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -5716,10 +5716,15 @@ static void redraw(char *path)
attroff(A_UNDERLINE | COLOR_PAIR(cfg.curctx + 1));
+ ncols = adjust_cols(ncols);
+
/* Go to first entry */
- move(2, 0);
+ if (curscroll > 0) {
+ move(1, 0);
+ addch('^');
+ }
- ncols = adjust_cols(ncols);
+ move(2, 0);
if (g_state.oldcolor) {
attron(COLOR_PAIR(cfg.curctx + 1) | A_BOLD);
@@ -5736,6 +5741,12 @@ static void redraw(char *path)
g_state.dircolor = 0;
}
+ /* Go to first entry */
+ if (i < ndents) {
+ move(xlines - 2, 0);
+ addch('v');
+ }
+
statusbar(path);
}