diff options
Diffstat (limited to 'vim-mode')
| -rw-r--r-- | vim-mode/vim_mode.pl | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 4b3a8ba..104b044 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -662,11 +662,12 @@ sub handle_command {              # . repeats the last command.              if ($char eq '.' and !$movement and defined $last->{char}) {                  $char = $last->{char}; -                $numeric_prefix = $last->{numeric_prefix}; +                # If . is given a count then it replaces original count. +                if (not defined $numeric_prefix) { +                    $numeric_prefix = $last->{numeric_prefix}; +                }                  $operator = $last->{operator};                  $movement = $last->{movement}; -                print "Repeating: $numeric_prefix$operator$char ($movement)" -                    if DEBUG;              }              $numeric_prefix = 1 if not $numeric_prefix; | 
