Use underline to show cur dir

This commit is contained in:
Arun Prakash Jana 2018-08-26 18:39:05 +05:30
parent 0655306cb5
commit 2401d6dc70
No known key found for this signature in database
GPG key ID: A75979F35C080412

4
nnn.c
View file

@ -2318,11 +2318,11 @@ redraw(char *path)
if (ncols > PATH_MAX)
ncols = PATH_MAX;
attron(A_REVERSE);
attron(A_UNDERLINE);
/* No text wrapping in cwd line */
g_buf[ncols - 1] = '\0';
printw("%s\n\n", g_buf);
attroff(A_REVERSE);
attroff(A_UNDERLINE);
/* Fallback to light mode if less than 35 columns */
if (ncols < 35 && cfg.showdetail) {