diff options
| author | Simon Ruderich <simon@ruderich.org> | 2010-10-02 15:54:26 +0000 | 
|---|---|---|
| committer | Simon Ruderich <simon@ruderich.org> | 2010-10-02 15:54:26 +0000 | 
| commit | 8b6d0abd1498b3b77c2ecf510d10a2f33bf5dde7 (patch) | |
| tree | a75cd5b1b3b881a5e7177ddaad265c3b962f739c | |
| parent | vim_mode: Minor comment fixes. (diff) | |
| download | irssi-scripts-8b6d0abd1498b3b77c2ecf510d10a2f33bf5dde7.tar.gz irssi-scripts-8b6d0abd1498b3b77c2ecf510d10a2f33bf5dde7.zip | |
vim_mode: Minor cleanup.
| -rw-r--r-- | vim-mode/vim_mode.pl | 5 | 
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));  } | 
