aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-09-26 16:48:41 +0000
committerSimon Ruderich <simon@ruderich.org>2010-09-26 16:48:41 +0000
commit938d1b2bba8ea36784c8c5319d3e71cf85ce5722 (patch)
tree122cd317aba35bbceff5fb06ebf048400da563ba /vim-mode/vim_mode.pl
parentvim_mode: If . is given a count it replaces original count. (diff)
downloadirssi-scripts-938d1b2bba8ea36784c8c5319d3e71cf85ce5722.tar.gz
irssi-scripts-938d1b2bba8ea36784c8c5319d3e71cf85ce5722.zip
vim_mode: Fix . before running any commands to repeat.
Diffstat (limited to 'vim-mode/vim_mode.pl')
-rw-r--r--vim-mode/vim_mode.pl6
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;