From 4a06ec71f736f4155b810087d30c1413c284eadc Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 29 Sep 2010 23:37:53 +0200 Subject: vim_mode: Fix dB. --- vim-mode/vim_mode.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 8e05927..eebe58b 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -374,11 +374,11 @@ sub _get_pos_and_length { $length *= -1; } - # w, W, x, 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. + # Most movement commands don't move one character after the deletion area + # (which is what we need). For those increase length to support proper + # selection/deletion. if ($move ne 'w' and $move ne 'W' and $move ne 'x' and $move ne 'X' and - $move ne 'h' and $move ne 'l') { + $move ne 'B' and $move ne 'h' and $move ne 'l') { $length += 1; } -- cgit v1.2.3