diff options
| author | 2018-08-26 17:56:08 +0530 | |
|---|---|---|
| committer | 2018-08-26 17:56:08 +0530 | |
| commit | 0655306cb57d442ae94e45eefd26e0b8bcb94b1d (patch) | |
| tree | c8f328e56831ee5c61d9b9c4631fe29c9ed4f63c | |
| parent | 424abe15cade056ffc537ad1a45f5c20d5d22e30 (diff) | |
| download | nnn-0655306cb57d442ae94e45eefd26e0b8bcb94b1d.tar.gz | |
A more visible current dir
| -rw-r--r-- | nnn.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -146,7 +146,6 @@ disabledbg() #define TOUPPER(ch) \ (((ch) >= 'a' && (ch) <= 'z') ? ((ch) - 'a' + 'A') : (ch)) #define MAX_CMD_LEN 5120 -#define CWD "DIR: " #define CURSR " > " #define EMPTY " " #define CURSYM(flag) (flag ? CURSR : EMPTY) @@ -2319,10 +2318,11 @@ redraw(char *path) if (ncols > PATH_MAX) ncols = PATH_MAX; + attron(A_REVERSE); /* No text wrapping in cwd line */ - /* Show CWD: - strlen(CWD) - 1 = 6 */ - g_buf[ncols - 6] = '\0'; - printw(CWD "%s\n\n", g_buf); + g_buf[ncols - 1] = '\0'; + printw("%s\n\n", g_buf); + attroff(A_REVERSE); /* Fallback to light mode if less than 35 columns */ if (ncols < 35 && cfg.showdetail) { |