aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-09-27 02:56:59 +0000
committerSimon Ruderich <simon@ruderich.org>2010-09-27 03:00:59 +0000
commiteb7d47524b3d025f0a3e5cd04e6d3ba51362740d (patch)
tree9b5150420a2724ab983bbf0e1b8eb37444169512 /vim-mode/vim_mode.pl
parentvim_mode: Remove fixed todo. (diff)
downloadirssi-scripts-eb7d47524b3d025f0a3e5cd04e6d3ba51362740d.tar.gz
irssi-scripts-eb7d47524b3d025f0a3e5cd04e6d3ba51362740d.zip
vim_mode: Fix b and e not working between two words.
Diffstat (limited to 'vim-mode/vim_mode.pl')
-rw-r--r--vim-mode/vim_mode.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 54f3de3..f2ea5fc 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -455,6 +455,10 @@ sub _end_of_word {
$pos += $+[0] + 1;
$skipped = 1;
}
+ elsif (substr($input, $pos) =~ /^\s+/) {
+ $pos += $+[0];
+ $skipped = 1;
+ }
# We are inside a word/non-word, skip to the end of it.
if (substr($input, $pos) =~ /^$word{2,}/ or
substr($input, $pos) =~ /^$non_word{2,}/) {