From 9f396969d5163421c4ceb9628aa1ed63878d94ac Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Fri, 26 May 2006 20:02:01 +0200 Subject: [PATCH] Never close backgrounded loads; only clear window when starting to update Before windows was cleared each time open_view maximized for example the main view when it was still loading. --- tig.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tig.c b/tig.c index f931e1d..975e7dc 100644 --- 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); -- 2.11.0