nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit b060115a19eaa0b950f7882dec6f7fa49415a922
parent 1195dc86e0a125e38086021a9c9c2322e438c21c
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sun,  5 Apr 2020 21:53:15 +0530

A nocolor msg print

Diffstat:
Msrc/nnn.c | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -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); }