From 8b6d0abd1498b3b77c2ecf510d10a2f33bf5dde7 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 2 Oct 2010 17:54:26 +0200 Subject: vim_mode: Minor cleanup. --- vim-mode/vim_mode.pl | 5 ++--- 1 file 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)); } -- cgit v1.2.3