瀏覽代碼

Remove redundant func call

master
Arun Prakash Jana 5 年之前
父節點
當前提交
6c141d1bb4
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: A75979F35C080412
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      src/nnn.c

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

@@ -2763,7 +2763,8 @@ nochange:
/* If NNN_USE_EDITOR is set, open text in EDITOR */
if (cfg.useeditor &&
get_output(g_buf, CMD_LEN_MAX, "file", FILE_OPTS, newpath, FALSE) &&
strstr(g_buf, "text/") == g_buf) {
g_buf[0] == 't' && g_buf[1] == 'e' && g_buf[2] == 'x' &&
g_buf[3] == g_buf[0] && g_buf[4] == '/') {
if (!quote_run_sh_cmd(editor, newpath, path))
goto nochange;
continue;


Loading…
取消
儲存