Code

Don't begin any update for the built-in help page
authorJonas Fonseca <fonseca@diku.dk>
Thu, 1 Jun 2006 02:48:32 +0000 (04:48 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Thu, 1 Jun 2006 02:48:32 +0000 (04:48 +0200)
tig.c

diff --git a/tig.c b/tig.c
index 4a4ce9a5517c1761d3a52fea9f064051d7f5ae47..9845c4094e975bef9d3d76db81a3f81703f6a2ab 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -1341,8 +1341,11 @@ open_view(struct view *prev, enum request request, enum open_flags flags)
                return;
        }
 
-       if ((reload || strcmp(view->vid, view->id)) &&
-           !begin_update(view)) {
+       if (view == VIEW(REQ_VIEW_HELP)) {
+               load_help_page();
+
+       } else if ((reload || strcmp(view->vid, view->id)) &&
+                  !begin_update(view)) {
                report("Failed to load %s view", view->name);
                return;
        }
@@ -1382,9 +1385,6 @@ open_view(struct view *prev, enum request request, enum open_flags flags)
                view->parent = prev;
        }
 
-       if (view == VIEW(REQ_VIEW_HELP))
-               load_help_page();
-
        if (view->pipe && view->lines == 0) {
                /* Clear the old view and let the incremental updating refill
                 * the screen. */