mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Minor reformat
This commit is contained in:
parent
707e30a590
commit
b3f8e4e511
|
@ -4992,7 +4992,7 @@ static void redraw(char *path)
|
||||||
|
|
||||||
int ncols = (xcols <= PATH_MAX) ? xcols : PATH_MAX;
|
int ncols = (xcols <= PATH_MAX) ? xcols : PATH_MAX;
|
||||||
int onscreen = xlines - 4;
|
int onscreen = xlines - 4;
|
||||||
int i;
|
int i, attrs;
|
||||||
char *ptr = path;
|
char *ptr = path;
|
||||||
|
|
||||||
// Fast redraw
|
// Fast redraw
|
||||||
|
@ -5026,9 +5026,9 @@ static void redraw(char *path)
|
||||||
if (!g_ctx[i].c_cfg.ctxactive) {
|
if (!g_ctx[i].c_cfg.ctxactive) {
|
||||||
addch(i + '1');
|
addch(i + '1');
|
||||||
} else {
|
} else {
|
||||||
int attrs = (cfg.curctx != i)
|
attrs = COLOR_PAIR(i + 1) | A_BOLD
|
||||||
? (COLOR_PAIR(i + 1) | A_BOLD | A_UNDERLINE) /* Active */
|
/* active: underline, current: reverse */
|
||||||
: (COLOR_PAIR(i + 1) | A_BOLD | A_REVERSE); /* Current */
|
| ((cfg.curctx != i) ? A_UNDERLINE : A_REVERSE );
|
||||||
attron(attrs);
|
attron(attrs);
|
||||||
addch(i + '1');
|
addch(i + '1');
|
||||||
attroff(attrs);
|
attroff(attrs);
|
||||||
|
|
Loading…
Reference in a new issue