Code

Also call end_update for views with custom open function
authorJonas Fonseca <fonseca@diku.dk>
Sat, 24 Jan 2009 12:22:40 +0000 (13:22 +0100)
committerJonas Fonseca <fonseca@diku.dk>
Sat, 24 Jan 2009 12:24:51 +0000 (13:24 +0100)
tig.c

diff --git a/tig.c b/tig.c
index e24939fd3df8c4fcd2552ea28f924b2d6437eaff..16dba6be8c2b0723bd1d145b073f10d08b3f1701 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -2925,6 +2925,8 @@ open_view(struct view *prev, enum request request, enum open_flags flags)
                resize_display();
 
        if (view->ops->open) {
+               if (view->pipe)
+                       end_update(view, TRUE);
                if (!view->ops->open(view)) {
                        report("Failed to load %s view", view->name);
                        return;