diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-10-09 00:27:17 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-10-09 00:27:17 +0000 |
commit | 2fc2e4fb9822362c9a94e3222ca5e4d10813faf3 (patch) | |
tree | 4f00223ec58ec32ac1f037ae451699a1dbdcf764 | |
parent | vim_mode: Update TODO file. (diff) | |
download | irssi-scripts-2fc2e4fb9822362c9a94e3222ca5e4d10813faf3.tar.gz irssi-scripts-2fc2e4fb9822362c9a94e3222ca5e4d10813faf3.zip |
vim_mode: Remove unnecessary sub cmd_space(), use cmd_l().
Diffstat (limited to '')
-rw-r--r-- | vim-mode/vim_mode.pl | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 4eacf55..9cc1ae4 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -269,7 +269,7 @@ my $commands # arrow like movement h => { char => 'h', func => \&cmd_h, type => C_NORMAL }, l => { char => 'l', func => \&cmd_l, type => C_NORMAL }, - ' ' => { char => '<Space>', func => \&cmd_space, type => C_NORMAL }, + ' ' => { char => '<Space>', func => \&cmd_l, type => C_NORMAL }, # history movement j => { char => 'j', func => \&cmd_j, type => C_NORMAL }, k => { char => 'k', func => \&cmd_k, type => C_NORMAL }, @@ -627,10 +627,6 @@ sub cmd_l { $pos = _fix_input_pos($pos, $length); return (undef, $pos); } -sub cmd_space { - my ($count, $pos, $repeat) = @_; - return cmd_l($count, $pos); -} # later history (down) sub cmd_j { |