Arun Prakash Jana 8 år sedan
förälder
incheckning
cbbe03247e
Ingen känd nyckel hittad för denna signaturen i databasen GPG-nyckel ID: A75979F35C080412
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. +2
    -2
      nnn.c

+ 2
- 2
nnn.c Visa fil

@@ -1592,13 +1592,13 @@ nochange:

/* If nlay doesn't handle it, open plain text
files with vi, then try NNN_FALLBACK_OPENER */
strcpy(cmd, "file -b \"");
strcpy(cmd, "file -bi \"");
xstrlcpy(cmd + strlen(cmd), newpath, strlen(newpath) + 1);
strcat(cmd, "\"");
if (get_output(cmd, MAX_CMD_LEN) == NULL)
continue;

if (strstr(cmd, "ASCII text") != NULL) {
if (strstr(cmd, "text/") == cmd) {
exitcurses();
run = xgetenv("EDITOR", "vi");
spawn(run, newpath, NULL, 0);


Laddar…
Avbryt
Spara