aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
Diffstat (limited to 'vim-mode/vim_mode.pl')
-rw-r--r--vim-mode/vim_mode.pl8
1 files 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;
}