]> Sergey Matveev's repositories - nnn.git/commitdiff
Skip printing and erasing
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 12 May 2020 09:45:47 +0000 (15:15 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 12 May 2020 09:45:47 +0000 (15:15 +0530)
src/nnn.c

index 3e5c532bf4faca62bfed1cc9285ef9251a389fcc..c56b9347c4e640ec8adcd7c05991b806e43dad34 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -5111,9 +5111,11 @@ static void redraw(char *path)
                        addch((i + '1') | (COLOR_PAIR(i + 1) | A_BOLD
                                /* active: underline, current: reverse */
                                | ((cfg.curctx != i) ? A_UNDERLINE : A_REVERSE)));
-               addch(' ');
+
+               if (i != CTX_MAX - 1)
+                       addch(' ');
        }
-       addstr("\b] "); /* 10 chars printed for contexts - "[1 2 3 4] " */
+       addstr("] "); /* 10 chars printed for contexts - "[1 2 3 4] " */
 
        attron(A_UNDERLINE);