backup the filetype problem if set in spinit

This commit is contained in:
dwarning 2007-12-29 21:11:12 +00:00
parent 6464cf535d
commit 2785bf1125
2 changed files with 5 additions and 5 deletions

View File

@ -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,

View File

@ -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",