]> git.deb.at Git - pkg/abook.git/commitdiff
vi-like movements to editor
authorJaakko Heinonen <jheinonen@users.sourceforge.net>
Mon, 10 Nov 2003 08:45:59 +0000 (08:45 +0000)
committerJaakko Heinonen <jheinonen@users.sourceforge.net>
Mon, 10 Nov 2003 08:45:59 +0000 (08:45 +0000)
edit.c
help.h

diff --git a/edit.c b/edit.c
index a2d5d2283388857c8a9148dd21ac7202ab136bc3..4300a18b6fc3eefc3d17460466082a1dbd7ae3ba 100644 (file)
--- a/edit.c
+++ b/edit.c
@@ -394,8 +394,10 @@ edit_loop(int item)
                case 'a': tab = TAB_ADDRESS; break;
                case 'p': tab = TAB_PHONE; break;
                case 'o': tab = TAB_OTHER; break;
+               case 'h':
                case KEY_LEFT: tab = tab == 0 ? MAX_TAB : tab - 1;
                               break;
+               case 'l':
                case KEY_RIGHT: tab = tab == MAX_TAB ? 0 : tab + 1;
                                break;
                case KEY_UP:
diff --git a/help.h b/help.h
index 181aa454d557f7e16703dc37028c38fdfeaf8ba4..0dab18a81f1e06ac1b5303ecac0557a3c1ba003c 100644 (file)
--- a/help.h
+++ b/help.h
@@ -51,7 +51,7 @@ NULL
 static char *editorhelp[] = {
 
 "\n",
-"      a,c,p,o / left,right    change tab\n",
+"      a,c,p,o / arrows / h,l  change tab\n",
 "\n",
 "      1 - 5                   edit fields\n",
 "\n",