Skip to content

Commit

Permalink
Fix #744
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Sep 28, 2020
1 parent 627c5cf commit 51009f8
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/nnn.c
Expand Up @@ -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);
Expand All @@ -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);
}

Expand Down

0 comments on commit 51009f8

Please sign in to comment.