aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-09-29 21:37:53 +0000
committerSimon Ruderich <simon@ruderich.org>2010-09-29 21:37:53 +0000
commit4a06ec71f736f4155b810087d30c1413c284eadc (patch)
tree79d171b42585e5ccc477cf0e1974ad63cd2bf59c
parentvim_mode: Fix missing argument to cmd_operator_d(). (diff)
downloadirssi-scripts-4a06ec71f736f4155b810087d30c1413c284eadc.tar.gz
irssi-scripts-4a06ec71f736f4155b810087d30c1413c284eadc.zip
vim_mode: Fix dB.
-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;
}