src/nnn.c | 15 +++++++++++++-- diff --git a/src/nnn.c b/src/nnn.c index 82a80eb86ccdd84159002676dc4dccf203882fe2..5110a14f6ec675960db6f20487abdc71c2bd06d3 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -5716,11 +5716,16 @@ } attroff(A_UNDERLINE | COLOR_PAIR(cfg.curctx + 1)); + ncols = adjust_cols(ncols); + /* Go to first entry */ + if (curscroll > 0) { + move(1, 0); + addch('^'); + } + move(2, 0); - ncols = adjust_cols(ncols); - if (g_state.oldcolor) { attron(COLOR_PAIR(cfg.curctx + 1) | A_BOLD); g_state.dircolor = 1; @@ -5734,6 +5739,12 @@ /* Must reset e.g. no files in dir */ if (g_state.dircolor) { attroff(COLOR_PAIR(cfg.curctx + 1) | A_BOLD); g_state.dircolor = 0; + } + + /* Go to first entry */ + if (i < ndents) { + move(xlines - 2, 0); + addch('v'); } statusbar(path);