diff options
| author | 2020-04-05 21:53:15 +0530 | |
|---|---|---|
| committer | 2020-04-05 22:46:16 +0530 | |
| commit | b060115a19eaa0b950f7882dec6f7fa49415a922 (patch) | |
| tree | 152a47323e5e025046d10af140ba4d8b66bd56dd /src | |
| parent | 1195dc86e0a125e38086021a9c9c2322e438c21c (diff) | |
| download | nnn-b060115a19eaa0b950f7882dec6f7fa49415a922.tar.gz | |
A nocolor msg print
Diffstat (limited to 'src')
| -rw-r--r-- | src/nnn.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -556,7 +556,7 @@ static const char * const messages[] = { "'s'shfs / 'r'clone?", "refresh if slow", "app name: ", - "'d'efault / e'x'tract / 'l'ist / 'm'ount?", + "'d'efault / 'e'xtract / 'l'ist / 'm'ount?", "plugin keys:", "bookmark keys:", "invalid regex", @@ -785,12 +785,17 @@ static void clearoldprompt(void) #endif /* Messages show up at the bottom */ -static void printmsg(const char *msg) +static inline void printmsg_nc(const char *msg) { tolastln(); - attron(COLOR_PAIR(cfg.curctx + 1) | A_REVERSE); addstr(msg); hline(' ', xcols); +} + +static void printmsg(const char *msg) +{ + attron(COLOR_PAIR(cfg.curctx + 1) | A_REVERSE); + printmsg_nc(msg); attroff(COLOR_PAIR(cfg.curctx + 1) | A_REVERSE); } |