aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-11-08 19:46:30 +0000
committerSimon Ruderich <simon@ruderich.org>2010-11-08 19:46:30 +0000
commitf4cc4a4815e7097724acd54c60a58e78be7363c9 (patch)
tree09d91a23f1773e57afc127de21c8271df51ee5e2 /vim-mode
parentremoved test/ dir since it was causing too much trouble (diff)
downloadirssi-scripts-f4cc4a4815e7097724acd54c60a58e78be7363c9.tar.gz
irssi-scripts-f4cc4a4815e7097724acd54c60a58e78be7363c9.zip
vim-mode: Fix s not using count.
Reported by estragib.
Diffstat (limited to 'vim-mode')
-rw-r--r--vim-mode/vim_mode.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 5a51e24..3ed29ae 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -1336,7 +1336,7 @@ sub cmd_s {
my ($count, $pos, $repeat) = @_;
$operator = $commands->{c};
- return (undef, $pos + 1);
+ return (undef, $pos + $count);
}
sub cmd_S {