diff options
| -rw-r--r-- | vim-mode/vim_mode.pl | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index d1dde46..416b753 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -443,6 +443,8 @@ sub cmd_movement_E {  sub _end_of_WORD {      my ($input, $count, $pos) = @_; +    return $pos if $pos >= length($input); +      # We are inside a word, skip to the end of it.      if (substr($input, $pos + 1) =~ /^\S+(\s)/) {          $pos += $-[1];  | 
