Code

Fix drawing loading views that are not displayed.
authorJonas Fonseca <fonseca@diku.dk>
Wed, 31 Dec 2008 17:53:24 +0000 (12:53 -0500)
committerJonas Fonseca <fonseca@diku.dk>
Wed, 31 Dec 2008 17:55:20 +0000 (12:55 -0500)
NEWS
tig.c

diff --git a/NEWS b/NEWS
index 361e3b0399615991f0720e849994e3f1468c261b..ece7619a2bbfe3fdfc1d97d7676d1880b4d1770e 100644 (file)
--- 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 4216d8700846bc48ba6ca7f95699dd4e0e59b6c3..d2bc2dd46555008a03b6aa903fea78ea304ecfbf 100644 (file)
--- 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. */