diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-28 11:11:07 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-28 11:11:07 +0200 |
| commit | ddf8647a5393e049f514a39764aebd8893ce00b9 (patch) | |
| tree | 0539941bd5ce776f89af000e8579ae833b90f8c5 /config.def.h | |
| parent | d954d51a4ce4d6fa13e9312fb72afa0f666a3378 (diff) | |
| download | vis-ddf8647a5393e049f514a39764aebd8893ce00b9.tar.gz vis-ddf8647a5393e049f514a39764aebd8893ce00b9.tar.xz | |
Make '.' repeat last insertion
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index e203446..a10b2ad 100644 --- a/config.def.h +++ b/config.def.h @@ -545,6 +545,9 @@ static void vis_mode_insert_idle(void) { static void vis_mode_insert_input(const char *str, size_t len) { editor_insert_key(vis, str, len); + /* make sure we can repeat the last insert */ + action_reset(&action_prev); + action_prev.op = &ops[OP_REPEAT_INSERT]; } static KeyBinding vis_mode_replace[] = { |
