소스 검색

Fix #23

master
Arun Prakash Jana 8 년 전
부모
커밋
cbbe03247e
No known key found for this signature in database GPG 키 ID: A75979F35C080412
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      nnn.c

+ 2
- 2
nnn.c 파일 보기

@@ -1592,13 +1592,13 @@ nochange:

/* If nlay doesn't handle it, open plain text
files with vi, then try NNN_FALLBACK_OPENER */
strcpy(cmd, "file -b \"");
strcpy(cmd, "file -bi \"");
xstrlcpy(cmd + strlen(cmd), newpath, strlen(newpath) + 1);
strcat(cmd, "\"");
if (get_output(cmd, MAX_CMD_LEN) == NULL)
continue;

if (strstr(cmd, "ASCII text") != NULL) {
if (strstr(cmd, "text/") == cmd) {
exitcurses();
run = xgetenv("EDITOR", "vi");
spawn(run, newpath, NULL, 0);


||||||
x
 
000:0
불러오는 중...
취소
저장