Code

Make Enter in the main view switch to the split diff view
authorJonas Fonseca <fonseca@diku.dk>
Sat, 20 May 2006 01:39:07 +0000 (03:39 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Sat, 20 May 2006 01:39:07 +0000 (03:39 +0200)
This way, holding down Enter will open the commit diff and start scrolling
much like Mutt behaves.

Requested-by: Aneesh Kumar <aneesh.kumar@gmail.com>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
tig.c

diff --git a/tig.c b/tig.c
index 95da3db69d04463ee299a05d3b6f2bbb4d4eec0f..41105b97f6d334f5bf00eb2a57acf66073d57daf 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -1748,7 +1748,7 @@ main_read(struct view *view, char *line)
 static bool
 main_enter(struct view *view)
 {
-       open_view(view, REQ_VIEW_DIFF, OPEN_SPLIT | OPEN_BACKGROUNDED);
+       open_view(view, REQ_VIEW_DIFF, OPEN_SPLIT);
        return TRUE;
 }