diff options
author | 2018-11-28 05:14:00 +0530 | |
---|---|---|
committer | 2018-11-28 05:14:12 +0530 | |
commit | 8ac68fcc5be4089acfda4c2c476cef6542456e43 (patch) | |
tree | e01d812fe9e4f4150c42853a77c076c768621474 /src | |
parent | 0a8970a811a0923ca215793659176e2221db4a32 (diff) | |
download | nnn-8ac68fcc5be4089acfda4c2c476cef6542456e43.tar.gz |
Fix #147: arg should be at the end as it can be NULL
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } } |