Code

Never close backgrounded loads; only clear window when starting to update
authorJonas Fonseca <fonseca@diku.dk>
Fri, 26 May 2006 18:02:01 +0000 (20:02 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Fri, 26 May 2006 18:02:01 +0000 (20:02 +0200)
Before windows was cleared each time open_view maximized for example the
main view when it was still loading.

tig.c

diff --git a/tig.c b/tig.c
index f931e1d229c3e185caad4449bf5b66ed72462657..975e7dc9b6a789f67a7a05f3931f1a44a97e3522 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -1344,17 +1344,15 @@ open_view(struct view *prev, enum request request, enum open_flags flags)
        }
 
        if (prev && view != prev) {
-               /* Continue loading split views in the background. */
-               if (!split)
-                       end_update(prev);
-               else if (!backgrounded)
+               if (!backgrounded) {
                        /* "Blur" the previous view. */
                        update_view_title(prev);
+               }
 
                view->parent = prev;
        }
 
-       if (view->pipe) {
+       if (view->pipe && view->lines == 0) {
                /* Clear the old view and let the incremental updating refill
                 * the screen. */
                wclear(view->win);