From 3c8b58ed2e548fe0b9522696ba8b2e6f486cf836 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 26 Sep 2010 18:39:36 +0200 Subject: vim_mode: Fix operators with h and l. They deleted one character too much. --- vim-mode/vim_mode.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vim-mode') 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; } -- cgit v1.2.3