]> git.deb.at Git - pkg/abook.git/commitdiff
added keybinding for custom tab and added missing assert.h
authorJaakko Heinonen <jheinonen@users.sourceforge.net>
Fri, 28 Nov 2003 14:27:43 +0000 (14:27 +0000)
committerJaakko Heinonen <jheinonen@users.sourceforge.net>
Fri, 28 Nov 2003 14:27:43 +0000 (14:27 +0000)
edit.c
help.h

diff --git a/edit.c b/edit.c
index 8d39660156e90ca5ce884e8ba7b1080019e9f6ce..100488d78e866c9302bb9acd589363f903609c85 100644 (file)
--- a/edit.c
+++ b/edit.c
@@ -9,6 +9,7 @@
 
 #include <string.h>
 #include <stdlib.h>
+#include <assert.h>
 #include "abook_curses.h"
 #include "ui.h"
 #include "abook.h"
@@ -398,6 +399,7 @@ edit_loop(int item)
                case 'a': tab = TAB_ADDRESS; break;
                case 'p': tab = TAB_PHONE; break;
                case 'o': tab = TAB_OTHER; break;
+               case 'C': tab = TAB_CUSTOM; break;
                case 'h':
                case KEY_LEFT: tab = tab == 0 ? MAX_TAB : tab - 1;
                               break;
diff --git a/help.h b/help.h
index 0dab18a81f1e06ac1b5303ecac0557a3c1ba003c..2e791b5f02859f818e71c97eb792f53aef6a2a93 100644 (file)
--- a/help.h
+++ b/help.h
@@ -51,7 +51,7 @@ NULL
 static char *editorhelp[] = {
 
 "\n",
-"      a,c,p,o / arrows / h,l  change tab\n",
+"      a,c,p,o,C/arrows/h,l    change tab\n",
 "\n",
 "      1 - 5                   edit fields\n",
 "\n",