Don't check if output changed on first screen.

When invoked with the --chgexit/-g options wait until we have at
least one screen of output before checking if the output changed.
Otherwise, we're comparing the initial screen of output to all
spaces, which usually isn't what we want.
This commit is contained in:
Kent R. Spillner 2012-03-11 10:14:27 -05:00
parent f5a3afdcae
commit ddfc402886

View File

@ -657,7 +657,7 @@ int main(int argc, char *argv[])
tabpending = 0;
}
move(y, x);
if (!exit_early && option_chgexit) {
if (!first_screen && !exit_early && option_chgexit) {
#ifdef WITH_WATCH8BIT
cchar_t oldc;
in_wch(&oldc);