aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-05 21:53:15 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-05 22:46:16 +0530
commitb060115a19eaa0b950f7882dec6f7fa49415a922 (patch)
tree152a47323e5e025046d10af140ba4d8b66bd56dd /src
parent1195dc86e0a125e38086021a9c9c2322e438c21c (diff)
downloadnnn-b060115a19eaa0b950f7882dec6f7fa49415a922.tar.gz
A nocolor msg print
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 9038954..b247ef2 100644
--- 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);
}