From 328d27f731f4b47d216d5170fd880a3e783a631e Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sun, 19 Aug 2007 11:02:21 +0200 Subject: [PATCH] Fix handling of REQ_NEXT/REQ_PREVIOUS The special browsing of the main view was broken by commit 586c423dd99238a85c556df86e043dcfacffe277, when the REQ_ENTER case was removed. --- tig.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tig.c b/tig.c index 0228007..c3bc1f4 100644 --- a/tig.c +++ b/tig.c @@ -2221,14 +2221,14 @@ view_driver(struct view *view, enum request request) move_view(view, request); if (view_is_displayed(view)) update_view_title(view); - if (line == view->lineno) - break; + if (line != view->lineno) + view->ops->request(view, REQ_ENTER, + &view->line[view->lineno]); + } else { move_view(view, request); - break; } - /* Fall-through */ - + break; case REQ_VIEW_NEXT: { -- 2.30.2