Browse Source

backup the filetype problem if set in spinit

pre-master-46
dwarning 19 years ago
parent
commit
2785bf1125
  1. 4
      src/frontend/runcoms.c
  2. 6
      src/frontend/runcoms2.c

4
src/frontend/runcoms.c

@ -176,9 +176,9 @@ dosim(char *what, wordlist *wl)
}
if (cp_getvar("filetype", VT_STRING, buf)) {
if (eq(buf, "binary") || eq(buf, "{binary}"))
if (eq(buf, "binary"))
ascii = FALSE;
else if (eq(buf, "ascii") || eq(buf, "{ascii}"))
else if (eq(buf, "ascii"))
ascii = TRUE;
else
fprintf(cp_err,

6
src/frontend/runcoms2.c

@ -82,10 +82,10 @@ com_resume(wordlist *wl)
dofile = TRUE;
if (cp_getvar("filetype", VT_STRING, buf)) {
if (eq(buf, "binary") || eq(buf, "{binary}"))
if (eq(buf, "binary"))
ascii = FALSE;
else if (eq(buf, "ascii") || eq(buf, "{ascii}"))
ascii = TRUE;
else if (eq(buf, "ascii"))
ascii = TRUE;
else
fprintf(cp_err,
"Warning: strange file type \"%s\" (using \"ascii\")\n",

Loading…
Cancel
Save