From: Jonas Fonseca Date: Thu, 1 Jun 2006 02:48:32 +0000 (+0200) Subject: Don't begin any update for the built-in help page X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2509b112f48d935a7130d041b69d248ee91b7e31;p=tig.git Don't begin any update for the built-in help page --- diff --git a/tig.c b/tig.c index 4a4ce9a..9845c40 100644 --- 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. */