From 808f6aa9610b1b3c8d8af6c5b7c92d90638f6b00 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 3 Oct 2010 23:38:25 +0200 Subject: vim_mode: Fix c repetition. --- vim-mode/vim_mode.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vim-mode') diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index a8dd629..ba736a5 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -407,7 +407,9 @@ sub cmd_operator_c { if (!$repeat) { _update_mode(M_INS); } else { - _insert_buffer(1, $new_pos); + my $pos = _input_pos(); + $pos = _insert_buffer(1, $pos); + _input_pos($pos); } } sub cmd_operator_d { -- cgit v1.2.3