mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Fix #147: arg should be at the end as it can be NULL
This commit is contained in:
parent
0a8970a811
commit
8ac68fcc5b
|
@ -2641,7 +2641,7 @@ nochange:
|
||||||
/* If NNN_USE_EDITOR is set, open text in EDITOR */
|
/* If NNN_USE_EDITOR is set, open text in EDITOR */
|
||||||
if (editor) {
|
if (editor) {
|
||||||
if (getmime(dents[cur].name)) {
|
if (getmime(dents[cur].name)) {
|
||||||
spawn(editor, editor_arg, newpath, path, F_NORMAL);
|
spawn(editor, newpath, editor_arg, path, F_NORMAL);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2652,7 +2652,7 @@ nochange:
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (strstr(g_buf, "text/") == g_buf) {
|
if (strstr(g_buf, "text/") == g_buf) {
|
||||||
spawn(editor, editor_arg, newpath, path, F_NORMAL);
|
spawn(editor, newpath, editor_arg, path, F_NORMAL);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue