From: Jonas Fonseca Date: Mon, 17 Sep 2007 23:52:02 +0000 (+0200) Subject: Handle REQ_NONE upfront in view_driver X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1bace428c4c924fff7a21e9f0d15feabafa756b3;p=tig.git Handle REQ_NONE upfront in view_driver It is very common during loading from pipe so deserves the small optimization. --- diff --git a/tig.c b/tig.c index 246812f..ac2aba0 100644 --- a/tig.c +++ b/tig.c @@ -2178,6 +2178,11 @@ view_driver(struct view *view, enum request request) { int i; + if (request == REQ_NONE) { + doupdate(); + return TRUE; + } + if (view && view->lines) { request = view->ops->request(view, request, &view->line[view->lineno]); if (request == REQ_NONE)