Fix default keybinding clash for 'n' between find-next and toggle-lineno
authorJonas Fonseca <fonseca@diku.dk>
Sun, 10 Sep 2006 21:13:35 +0000 (23:13 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Sun, 10 Sep 2006 21:13:35 +0000 (23:13 +0200)
The toggle-lineno is now bound to '.' by default.

manual.txt
tig.c

index 82e848e..3790749 100644 (file)
@@ -296,7 +296,7 @@ z   Stop all background loading. This can be useful if you use \
        tig in a repository with a long history without limiting \
        the revision log.
 v      Show version.
-n      Toggle line numbers on/off.
+'.'    Toggle line numbers on/off.
 g      Toggle revision graph visualization on/off.
 ':'    Open prompt. This allows you to specify what git command \
        to run. Example `:log -p`
diff --git a/tig.c b/tig.c
index bfa8ae8..e78c26c 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -714,7 +714,7 @@ static struct keybinding default_keybindings[] = {
        { 'z',          REQ_STOP_LOADING },
        { 'v',          REQ_SHOW_VERSION },
        { 'r',          REQ_SCREEN_REDRAW },
-       { 'n',          REQ_TOGGLE_LINENO },
+       { '.',          REQ_TOGGLE_LINENO },
        { 'g',          REQ_TOGGLE_REV_GRAPH },
        { ':',          REQ_PROMPT },