From: Jonas Fonseca Date: Wed, 31 Dec 2008 17:53:24 +0000 (-0500) Subject: Fix drawing loading views that are not displayed. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cbe1676b5f25c4866f0cf8bdddb59604e18fa134;p=tig.git Fix drawing loading views that are not displayed. --- 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. */