diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-05 08:23:21 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-05 08:23:21 +0200 |
| commit | d1841630554754e9d63104385f958cb8e0340f00 (patch) | |
| tree | f7451ec994c5a5d5c9aa976ffc89a86c8a73f29c | |
| parent | 3c0a6f2913517c372d29745b80b3c7c51a39fbb2 (diff) | |
| download | vis-d1841630554754e9d63104385f958cb8e0340f00.tar.gz vis-d1841630554754e9d63104385f958cb8e0340f00.tar.xz | |
Fix missuse of cursor instead of call in config.def.h
| -rw-r--r-- | config.def.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/config.def.h b/config.def.h index 0e24370..9cd3497 100644 --- a/config.def.h +++ b/config.def.h @@ -583,7 +583,7 @@ static KeyBinding vis_normal[] = { { { NONE('.') }, repeat, { } }, { { NONE('n') }, find_forward, { .s = "if" } }, { { NONE('N') }, find_backward, { .s = "if" } }, - { { NONE('x') }, cursor, { .f = vis_delete_key } }, + { { NONE('x') }, call, { .f = vis_delete_key } }, { { NONE('i') }, switchmode, { .i = VIS_MODE_INSERT } }, { { NONE('v') }, switchmode, { .i = VIS_MODE_VISUAL } }, { { NONE('R') }, switchmode, { .i = VIS_MODE_REPLACE} }, @@ -608,8 +608,8 @@ static void vis_visual_leave(void) { static KeyBinding vis_insert_mode[] = { { { NONE(ESC) }, switchmode, { .i = VIS_MODE_NORMAL } }, - { { CONTROL('D') }, cursor, { .f = vis_delete_key } }, - BACKSPACE( cursor, f, vis_backspace_key ), + { { CONTROL('D') }, call, { .f = vis_delete_key } }, + BACKSPACE( call, f, vis_backspace_key ), { /* empty last element, array terminator */ }, }; @@ -752,8 +752,8 @@ XXX: CONTROL(' ') = 0, ^Space Go forward one word /* key binding configuration */ static KeyBinding nano_keys[] = { - { { CONTROL('D') }, cursor, { .f = vis_delete_key } }, - BACKSPACE( cursor, f, vis_backspace_key ), + { { CONTROL('D') }, call, { .f = vis_delete_key } }, + BACKSPACE( call, f, vis_backspace_key ), { { CONTROL('F') }, movement, { .i = MOVE_CHAR_NEXT } }, { { CONTROL('P') }, movement, { .i = MOVE_LINE_UP } }, { { CONTROL('N') }, movement, { .i = MOVE_LINE_DOWN } }, |
