浏览代码

File colors is independent of context colors

master
Arun Prakash Jana 4 年前
父节点
当前提交
5e3a793480
找不到此签名对应的密钥 GPG 密钥 ID: A75979F35C080412
共有 1 个文件被更改,包括 9 次插入8 次删除
  1. +9
    -8
      src/nnn.c

+ 9
- 8
src/nnn.c 查看文件

@@ -1661,11 +1661,14 @@ static bool initcurses(void *oldmask)
use_default_colors();

/* Initialize file colors */
if (COLORS >= 256 && !(g_state.oldcolor || init_fcolors())) {
exitcurses();
fprintf(stderr, "NNN_FCOLORS!\n");
return FALSE;
}
if (COLORS >= 256) {
if (!(g_state.oldcolor || init_fcolors())) {
exitcurses();
fprintf(stderr, "NNN_FCOLORS!\n");
return FALSE;
}
} else
g_state.oldcolor = 1;

if (colors && *colors == '#') {
char *sep = strchr(colors, ';');
@@ -1685,10 +1688,8 @@ static bool initcurses(void *oldmask)
colors = sep; /* Detect if 8 colors fallback is appended */
if (colors)
++colors;
g_state.oldcolor = 1;
}
} else
g_state.oldcolor = 1;
}

/* Get and set the context colors */
for (uchar i = 0; i < CTX_MAX; ++i) {


正在加载...
取消
保存