diff options
| author | Simon Ruderich <simon@ruderich.org> | 2010-09-27 02:56:59 +0000 | 
|---|---|---|
| committer | Simon Ruderich <simon@ruderich.org> | 2010-09-27 03:00:59 +0000 | 
| commit | eb7d47524b3d025f0a3e5cd04e6d3ba51362740d (patch) | |
| tree | 9b5150420a2724ab983bbf0e1b8eb37444169512 /vim-mode | |
| parent | vim_mode: Remove fixed todo. (diff) | |
| download | irssi-scripts-eb7d47524b3d025f0a3e5cd04e6d3ba51362740d.tar.gz irssi-scripts-eb7d47524b3d025f0a3e5cd04e6d3ba51362740d.zip  | |
vim_mode: Fix b and e not working between two words.
Diffstat (limited to 'vim-mode')
| -rw-r--r-- | vim-mode/vim_mode.pl | 4 | 
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,}/) {  | 
