From bb9a850a77f85331a151141907b0bae72263fa82 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sat, 21 Feb 2009 02:07:33 +0100 Subject: [PATCH] Fix previous/next with branch+main view If the main view was opened as a child window of branch view, the previous/next key would scroll the child window instead of the parent one, which was not consistent with other dual-window situations. Fix by checking for a branch+main too when delegating the request. Signed-off-by: Giuseppe Bilotta Signed-off-by: Jonas Fonseca --- tig.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tig.c b/tig.c index 998c926..a968d51 100644 --- a/tig.c +++ b/tig.c @@ -3225,7 +3225,9 @@ view_driver(struct view *view, enum request request) (view == VIEW(REQ_VIEW_STAGE) && view->parent == VIEW(REQ_VIEW_STATUS)) || (view == VIEW(REQ_VIEW_BLOB) && - view->parent == VIEW(REQ_VIEW_TREE))) { + view->parent == VIEW(REQ_VIEW_TREE)) || + (view == VIEW(REQ_VIEW_MAIN) && + view->parent == VIEW(REQ_VIEW_BRANCH))) { int line; view = view->parent; -- 2.30.2