From ddfc402886eb215d34ce031a60a861e50e80a19a Mon Sep 17 00:00:00 2001 From: "Kent R. Spillner" Date: Sun, 11 Mar 2012 10:14:27 -0500 Subject: [PATCH] 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. --- watch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watch.c b/watch.c index e3066f6f..6ce174ba 100644 --- a/watch.c +++ b/watch.c @@ -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);