diff --git a/src/unexpand.c b/src/unexpand.c index 6d1002249..b9ed275c3 100644 --- a/src/unexpand.c +++ b/src/unexpand.c @@ -249,14 +249,6 @@ unexpand (void) for (;;) { c = getc (fp); - if (c == EOF) - { - fp = next_file (fp); - if (fp == NULL) - break; /* No more files. */ - else - continue; - } if (c == ' ' && convert) { @@ -334,6 +326,15 @@ unexpand (void) } } + if (c == EOF) + { + fp = next_file (fp); + if (fp == NULL) + break; /* No more files. */ + else + continue; + } + if (convert) { if (c == '\b')