From a01f7e62eddba5600531be250a854cbd4fdc8242 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Fri, 13 Feb 2009 14:41:40 +0100 Subject: [PATCH] Fix the view clearing to only be effective for displayed views The feature was introduced in ec9aa4f62ae2977d598dda865e6a50b9fc799428. --- tig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tig.c b/tig.c index 705e3dd..1b5f0f2 100644 --- a/tig.c +++ b/tig.c @@ -2859,7 +2859,7 @@ update_view(struct view *view) return TRUE; if (!io_can_read(view->pipe)) { - if (view->lines == 0) { + if (view->lines == 0 && view_is_displayed(view)) { time_t secs = time(NULL) - view->start_time; if (secs > 1 && secs > view->update_secs) { -- 2.30.2