diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-09-26 16:48:41 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-09-26 16:48:41 +0000 |
commit | 938d1b2bba8ea36784c8c5319d3e71cf85ce5722 (patch) | |
tree | 122cd317aba35bbceff5fb06ebf048400da563ba /vim-mode/vim_mode.pl | |
parent | vim_mode: If . is given a count it replaces original count. (diff) | |
download | irssi-scripts-938d1b2bba8ea36784c8c5319d3e71cf85ce5722.tar.gz irssi-scripts-938d1b2bba8ea36784c8c5319d3e71cf85ce5722.zip |
vim_mode: Fix . before running any commands to repeat.
Diffstat (limited to '')
-rw-r--r-- | vim-mode/vim_mode.pl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 104b044..303751b 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -162,7 +162,7 @@ my $movements 'P' => { func => \&cmd_movement_P }, # misc '~' => { func => \&cmd_movement_tilde }, - '.' => {}, + '.' => { func => \&cmd_movement_dot }, }; # special movements which take an additional key @@ -476,6 +476,10 @@ sub cmd_movement_tilde { _input($input); _input_pos($pos + $count); } +sub cmd_movement_dot { + # Does nothing. Necessary to prevent errors when pressing . before running + # any commands (at irssi startup). +} sub cmd_ex_command { my $arg_str = join '', @ex_buf; |