浏览代码

Fix #23

master
Arun Prakash Jana 8 年前
父节点
当前提交
cbbe03247e
找不到此签名对应的密钥 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
正在加载...
取消
保存