aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/nnn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 7d37716..7a0ac90 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -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;
}
}