diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-04-09 19:13:42 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-04-09 19:13:42 +0530 |
commit | b3f8e4e511fc63abc5c2fdbe3a38c00f56cae122 (patch) | |
tree | 37e69459b1d16e2c0435081efe1b8209df75027f /src | |
parent | 707e30a590f3b30044b6bcad1497f011f93a0539 (diff) | |
download | nnn-b3f8e4e511fc63abc5c2fdbe3a38c00f56cae122.tar.gz |
Minor reformat
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -4992,7 +4992,7 @@ static void redraw(char *path) int ncols = (xcols <= PATH_MAX) ? xcols : PATH_MAX; int onscreen = xlines - 4; - int i; + int i, attrs; char *ptr = path; // Fast redraw @@ -5026,9 +5026,9 @@ static void redraw(char *path) if (!g_ctx[i].c_cfg.ctxactive) { addch(i + '1'); } else { - int attrs = (cfg.curctx != i) - ? (COLOR_PAIR(i + 1) | A_BOLD | A_UNDERLINE) /* Active */ - : (COLOR_PAIR(i + 1) | A_BOLD | A_REVERSE); /* Current */ + attrs = COLOR_PAIR(i + 1) | A_BOLD + /* active: underline, current: reverse */ + | ((cfg.curctx != i) ? A_UNDERLINE : A_REVERSE ); attron(attrs); addch(i + '1'); attroff(attrs); |