소스 검색

Initialize file type colors as default

master
Arun Prakash Jana 4 년 전
부모
커밋
8ddc659df8
No known key found for this signature in database 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();
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 == '#') {
char *sep = strchr(colors, ';');

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

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


불러오는 중...
취소
저장