From: Jaakko Heinonen Date: Fri, 28 Nov 2003 14:27:43 +0000 (+0000) Subject: added keybinding for custom tab and added missing assert.h X-Git-Tag: upstream/0.6.1~2^2~227 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=24be624311cedd42ed09acfc605cdf51546bb5ab;p=pkg%2Fabook.git added keybinding for custom tab and added missing assert.h --- diff --git a/edit.c b/edit.c index 8d39660..100488d 100644 --- a/edit.c +++ b/edit.c @@ -9,6 +9,7 @@ #include #include +#include #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 0dab18a..2e791b5 100644 --- 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",