summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 74f6f11)
raw | patch | inline | side by side (parent: 74f6f11)
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | |
Sat, 21 Feb 2009 01:07:33 +0000 (02:07 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Sat, 21 Feb 2009 12:08:38 +0000 (13:08 +0100) |
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 <giuseppe.bilotta@gmail.com>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
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 <giuseppe.bilotta@gmail.com>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
tig.c | patch | blob | history |
index 998c926e6c569c0f8a3b81f51f144901a7cff9c3..a968d51bb7b464f65c0a2cabb38cd0fb70173b00 100644 (file)
--- a/tig.c
+++ b/tig.c
(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;