From 938d1b2bba8ea36784c8c5319d3e71cf85ce5722 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 26 Sep 2010 18:48:41 +0200 Subject: vim_mode: Fix . before running any commands to repeat. --- vim-mode/vim_mode.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'vim-mode/vim_mode.pl') 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; -- cgit v1.2.3