index f34334ce7e15682850669743923f75d1c7900fd7..79b23e01ba78784573f2c5d2e564068c0b689089 100644 (file)
--- a/tig.c
+++ b/tig.c
static bool
begin_update(struct view *view, bool refresh)
{
+ if (view->pipe)
+ end_update(view, TRUE);
+
if (refresh) {
if (!start_io(&view->io))
return FALSE;
(nviews == 1 && base_view != display[0]))
resize_display();
- if (view->pipe)
- end_update(view, TRUE);
-
if (view->ops->open) {
if (!view->ops->open(view)) {
report("Failed to load %s view", view->name);