]> Sergey Matveev's repositories - nnn.git/commitdiff
A nocolor msg print
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 5 Apr 2020 16:23:15 +0000 (21:53 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 5 Apr 2020 17:16:16 +0000 (22:46 +0530)
src/nnn.c

index 90389547dba941610c67e667f929c6f7a8a8004f..b247ef20e1ec3376265c4d9f3f06740afd0ee10a 100644 (file)
--- 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);
 }