From 1bace428c4c924fff7a21e9f0d15feabafa756b3 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Tue, 18 Sep 2007 01:52:02 +0200 Subject: [PATCH] Handle REQ_NONE upfront in view_driver It is very common during loading from pipe so deserves the small optimization. --- tig.c | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.30.2