diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-09-26 21:16:43 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-09-26 21:19:44 +0000 |
commit | fafa62d5e1063c13c598219a1e8379992766d243 (patch) | |
tree | 068c095247d876060ace5cdff92fd179609b2f97 | |
parent | vim_mode: Minor code restructure. No functional changes. (diff) | |
download | irssi-scripts-fafa62d5e1063c13c598219a1e8379992766d243.tar.gz irssi-scripts-fafa62d5e1063c13c598219a1e8379992766d243.zip |
vim_mode: . doesn't repeat movements now.
-rw-r--r-- | vim-mode/vim_mode.pl | 12 |
1 files 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; |