浏览代码

Initialize file type colors as default

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

+ 7
- 6
src/nnn.c 查看文件

@@ -1660,6 +1660,13 @@ static bool initcurses(void *oldmask)
start_color(); start_color();
use_default_colors(); use_default_colors();


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

if (colors && *colors == '#') { if (colors && *colors == '#') {
char *sep = strchr(colors, ';'); char *sep = strchr(colors, ';');


@@ -1674,12 +1681,6 @@ static bool initcurses(void *oldmask)
*/ */
if (sep) if (sep)
*sep = '\0'; *sep = '\0';

if (!(g_state.oldcolor || init_fcolors())) {
exitcurses();
fprintf(stderr, "NNN_FCOLORS!\n");
return FALSE;
}
} else { } else {
colors = sep; /* Detect if 8 colors fallback is appended */ colors = sep; /* Detect if 8 colors fallback is appended */
if (colors) if (colors)


||||||
x
 
000:0
正在加载...
取消
保存