]> git.deb.at Git - pkg/abook.git/blobdiff - edit.c
vi-like movements to editor
[pkg/abook.git] / edit.c
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: