From: Jonas Fonseca Date: Fri, 26 May 2006 18:02:01 +0000 (+0200) Subject: Never close backgrounded loads; only clear window when starting to update X-Git-Tag: tig-0.4~48 X-Git-Url: https://git.distorted.org.uk/~mdw/tig/commitdiff_plain/9f396969d5163421c4ceb9628aa1ed63878d94ac 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. --- 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);