diff options
author | 2019-01-10 02:28:30 +0530 | |
---|---|---|
committer | 2019-01-10 08:11:23 +0530 | |
commit | 6c141d1bb49357304449d23599ef65664c94b5b9 (patch) | |
tree | a3df1a3a1391197740f1f65af9cb4752ff1ad570 /src | |
parent | b40662635d251af3d5fc839c7baf50f5cb83860b (diff) | |
download | nnn-6c141d1bb49357304449d23599ef65664c94b5b9.tar.gz |
Remove redundant func call
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |