From 2509b112f48d935a7130d041b69d248ee91b7e31 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Thu, 1 Jun 2006 04:48:32 +0200 Subject: [PATCH] Don't begin any update for the built-in help page --- tig.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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. */ -- 2.30.2