aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-02 15:37:56 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-02 15:37:56 +0000
commit0760d31f2eef9aa6a486851a2d8cf6d9c1307845 (patch)
tree18582831e7ade478f8f9ef4efe94d3dad1126f59 /vim-mode
parentvim_mode: Movement commands return $cur_pos, $new_pos. (diff)
downloadirssi-scripts-0760d31f2eef9aa6a486851a2d8cf6d9c1307845.tar.gz
irssi-scripts-0760d31f2eef9aa6a486851a2d8cf6d9c1307845.zip
vim_mode: Fix a with count.
Diffstat (limited to '')
-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 0149844..50792dd 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -936,7 +936,7 @@ sub cmd_movement_a {
# Move after current character. Can't use cmd_movement_l() because we need
# to mover after last character at the end of the line.
my $length = _input_len();
- $pos += $count;
+ $pos += 1;
$pos = $length if $pos > $length;
if (!$repeat) {