aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
Diffstat (limited to '')
-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,}/) {