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 7fca9a8..b0f5382 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;
        }