diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-09-26 16:39:36 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-09-26 16:39:36 +0000 |
commit | 3c8b58ed2e548fe0b9522696ba8b2e6f486cf836 (patch) | |
tree | 9820803089809d61c0e9cce77ebfd3b3e4885213 /vim-mode | |
parent | vim_mode: Document . (diff) | |
download | irssi-scripts-3c8b58ed2e548fe0b9522696ba8b2e6f486cf836.tar.gz irssi-scripts-3c8b58ed2e548fe0b9522696ba8b2e6f486cf836.zip |
vim_mode: Fix operators with h and l.
They deleted one character too much.
Diffstat (limited to '')
-rw-r--r-- | vim-mode/vim_mode.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index b7a5459..4b3a8ba 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -216,10 +216,10 @@ sub _get_pos_and_length { $length *= -1; } - # w and x are the only movements which move one character after the + # w, x, h, l are the only movements which move one character after the # deletion area (which is what we need), all other commands need one # character more for correct deletion. - if ($move ne 'w' and $move ne 'x') { + if ($move ne 'w' and $move ne 'x' and $move ne 'h' and $move ne 'l') { $length += 1; } |