aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-09 00:27:17 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-09 00:27:17 +0000
commit2fc2e4fb9822362c9a94e3222ca5e4d10813faf3 (patch)
tree4f00223ec58ec32ac1f037ae451699a1dbdcf764 /vim-mode/vim_mode.pl
parentvim_mode: Update TODO file. (diff)
downloadirssi-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.pl6
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 {