浏览代码

Fix #147: arg should be at the end as it can be NULL

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

+ 2
- 2
src/nnn.c 查看文件

@@ -2641,7 +2641,7 @@ nochange:
/* If NNN_USE_EDITOR is set, open text in EDITOR */
if (editor) {
if (getmime(dents[cur].name)) {
spawn(editor, editor_arg, newpath, path, F_NORMAL);
spawn(editor, newpath, editor_arg, path, F_NORMAL);
continue;
}

@@ -2652,7 +2652,7 @@ nochange:
continue;

if (strstr(g_buf, "text/") == g_buf) {
spawn(editor, editor_arg, newpath, path, F_NORMAL);
spawn(editor, newpath, editor_arg, path, F_NORMAL);
continue;
}
}


正在加载...
取消
保存