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 efea6f4..3c267af 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;