From eb7d47524b3d025f0a3e5cd04e6d3ba51362740d Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 27 Sep 2010 04:56:59 +0200 Subject: vim_mode: Fix b and e not working between two words. --- vim-mode/vim_mode.pl | 4 ++++ 1 file changed, 4 insertions(+) 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,}/) { -- cgit v1.2.3