aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-02 15:54:26 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-02 15:54:26 +0000
commit8b6d0abd1498b3b77c2ecf510d10a2f33bf5dde7 (patch)
treea75cd5b1b3b881a5e7177ddaad265c3b962f739c /vim-mode/vim_mode.pl
parentvim_mode: Minor comment fixes. (diff)
downloadirssi-scripts-8b6d0abd1498b3b77c2ecf510d10a2f33bf5dde7.tar.gz
irssi-scripts-8b6d0abd1498b3b77c2ecf510d10a2f33bf5dde7.zip
vim_mode: Minor cleanup.
Diffstat (limited to '')
-rw-r--r--vim-mode/vim_mode.pl5
1 files changed, 2 insertions, 3 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 33513a0..ecada0d 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -883,13 +883,12 @@ sub cmd_movement_caret {
$pos = $-[0];
# Only whitespace, go to the end.
} else {
- $pos = _fix_input_pos(_input_len(), length $input);
+ $pos = _fix_input_pos(length $input, length $input);
}
return (undef, $pos);
}
sub cmd_movement_dollar {
- my $input = _input();
- my $length = length $input;
+ my $length = _input_len();
return (undef, _fix_input_pos($length, $length));
}