Pārlūkot izejas kodu

Fix #147: arg should be at the end as it can be NULL

master
Arun Prakash Jana pirms 6 gadiem
vecāks
revīzija
8ac68fcc5b
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: A75979F35C080412
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      src/nnn.c

+ 2
- 2
src/nnn.c Parādīt failu

@@ -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;
}
}


Notiek ielāde…
Atcelt
Saglabāt