aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-08-26 17:56:08 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-08-26 17:56:08 +0530
commit0655306cb57d442ae94e45eefd26e0b8bcb94b1d (patch)
treec8f328e56831ee5c61d9b9c4631fe29c9ed4f63c
parent424abe15cade056ffc537ad1a45f5c20d5d22e30 (diff)
downloadnnn-0655306cb57d442ae94e45eefd26e0b8bcb94b1d.tar.gz
A more visible current dir
-rw-r--r--nnn.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nnn.c b/nnn.c
index b7a970c..75d645a 100644
--- a/nnn.c
+++ b/nnn.c
@@ -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) {