From cbe1676b5f25c4866f0cf8bdddb59604e18fa134 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Wed, 31 Dec 2008 12:53:24 -0500 Subject: [PATCH] Fix drawing loading views that are not displayed. --- NEWS | 1 + tig.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/NEWS b/NEWS index 361e3b0..ece7619 100644 --- a/NEWS +++ b/NEWS @@ -18,6 +18,7 @@ Bug fixes: - Fix waiting for input after executing a run request in pager mode. - Status & stage view: refuse to open directories and deleted files. - Tree view: show error when requesting blame for all non-file entries. + - Do not draw loading views, which are not displayed. tig-0.12.1 ---------- diff --git a/tig.c b/tig.c index 4216d87..d2bc2dd 100644 --- a/tig.c +++ b/tig.c @@ -2400,6 +2400,9 @@ update_view(struct view *view) end_update(view, FALSE); } + if (!view_is_displayed(view)) + return TRUE; + if (view == VIEW(REQ_VIEW_TREE)) { /* Clear the view and redraw everything since the tree sorting * might have rearranged things. */ -- 2.32.0.93.g670b81a890