From fafa62d5e1063c13c598219a1e8379992766d243 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 26 Sep 2010 23:16:43 +0200 Subject: vim_mode: . doesn't repeat movements now. --- vim-mode/vim_mode.pl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 91fbc0e..36bc6e0 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -760,11 +760,13 @@ sub handle_command { $operators->{$operator}->{func}->($cur_pos, $new_pos, $char); } - # Store command, necessary for . - $last->{char} = $char; - $last->{numeric_prefix} = $numeric_prefix; - $last->{operator} = $operator; - $last->{movement} = $movement; + # Store command, necessary for . But ignore movements only. + if ($operator) { + $last->{char} = $char; + $last->{numeric_prefix} = $numeric_prefix; + $last->{operator} = $operator; + $last->{movement} = $movement; + } } $numeric_prefix = undef; -- cgit v1.2.3