Code

Cleanup bluring of the previous view's title bar
authorJonas Fonseca <fonseca@diku.dk>
Fri, 27 Nov 2009 12:37:48 +0000 (07:37 -0500)
committerJonas Fonseca <fonseca@diku.dk>
Fri, 27 Nov 2009 12:37:48 +0000 (07:37 -0500)
tig.c

diff --git a/tig.c b/tig.c
index bd30997c00ede3035271484f5cb18326fe64c34c..e2ae80dfb703e3f55057cf5719d58e8ae100a32b 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -3236,11 +3236,9 @@ open_view(struct view *prev, enum request request, enum open_flags flags)
                do_scroll_view(prev, lines);
        }
 
-       if (prev && view != prev) {
-               if (split) {
-                       /* "Blur" the previous view. */
-                       update_view_title(prev);
-               }
+       if (prev && view != prev && split && view_is_displayed(prev)) {
+               /* "Blur" the previous view. */
+               update_view_title(prev);
        }
 
        if (view->pipe && view->lines == 0) {