mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
Remove redundant func call
This commit is contained in:
parent
b40662635d
commit
6c141d1bb4
1 changed files with 2 additions and 1 deletions
|
@ -2763,7 +2763,8 @@ nochange:
|
||||||
/* If NNN_USE_EDITOR is set, open text in EDITOR */
|
/* If NNN_USE_EDITOR is set, open text in EDITOR */
|
||||||
if (cfg.useeditor &&
|
if (cfg.useeditor &&
|
||||||
get_output(g_buf, CMD_LEN_MAX, "file", FILE_OPTS, newpath, FALSE) &&
|
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))
|
if (!quote_run_sh_cmd(editor, newpath, path))
|
||||||
goto nochange;
|
goto nochange;
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Reference in a new issue