aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-09-29 21:20:11 +0000
committerSimon Ruderich <simon@ruderich.org>2010-09-29 21:20:11 +0000
commite3d9f9c94d9f266999a22b387f857bdc8d4a5927 (patch)
treec8ddc08c34d96466b86eb1807b55dfc66c8d17ed /vim-mode
parentvim_mode: Fix deletion/yanking/changing with most movements. (diff)
downloadirssi-scripts-e3d9f9c94d9f266999a22b387f857bdc8d4a5927.tar.gz
irssi-scripts-e3d9f9c94d9f266999a22b387f857bdc8d4a5927.zip
vim_mode: Fix W with operators.
Diffstat (limited to '')
-rw-r--r--vim-mode/vim_mode.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index cf04f35..99268a5 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -374,10 +374,11 @@ sub _get_pos_and_length {
$length *= -1;
}
- # 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
+ # 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.
- if ($move ne 'w' and $move ne 'x' and $move ne 'X' and $move ne 'h' and $move ne 'l') {
+ if ($move ne 'w' and $move ne 'W' and $move ne 'x' and $move ne 'X' and
+ $move ne 'h' and $move ne 'l') {
$length += 1;
}