Code

Rearrange pager_enter logic
authorJonas Fonseca <fonseca@diku.dk>
Wed, 24 May 2006 14:56:52 +0000 (16:56 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Wed, 24 May 2006 14:56:52 +0000 (16:56 +0200)
tig.c

diff --git a/tig.c b/tig.c
index 7fca9a875057e7e5fc5e397fae046157348ae9f4..b0f53821742eb6d5ef60ea8407b5f2ca72f72588 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -1593,9 +1593,9 @@ pager_enter(struct view *view, struct line *line)
 {
        int split = 0;
 
-       if ((view == VIEW(REQ_VIEW_LOG) ||
-            view == VIEW(REQ_VIEW_PAGER)) &&
-           line->type == LINE_COMMIT) {
+       if (line->type == LINE_COMMIT &&
+          (view == VIEW(REQ_VIEW_LOG) ||
+           view == VIEW(REQ_VIEW_PAGER))) {
                open_view(view, REQ_VIEW_DIFF, OPEN_SPLIT);
                split = 1;
        }