Code

In pager mode, fix entering commit lines from log and pager view
authorJonas Fonseca <fonseca@diku.dk>
Sat, 20 May 2006 16:42:26 +0000 (18:42 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Sat, 20 May 2006 16:42:26 +0000 (18:42 +0200)
tig.c

diff --git a/tig.c b/tig.c
index efea6f4ad4bcb9cc8d6921e22ff8f5d54993da82..3c267aff669f9a1fad1d45ecbe0169d893d3f0c9 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -1557,7 +1557,7 @@ pager_enter(struct view *view)
        int split = 0;
 
        if ((view == VIEW(REQ_VIEW_LOG) ||
-            view == VIEW(REQ_VIEW_LOG)) &&
+            view == VIEW(REQ_VIEW_PAGER)) &&
            get_line_type(line) == LINE_COMMIT) {
                open_view(view, REQ_VIEW_DIFF, OPEN_SPLIT);
                split = 1;