]> git.deb.at Git - pkg/abook.git/blobdiff - edit.c
added keybinding for custom tab and added missing assert.h
[pkg/abook.git] / edit.c
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;