diff options
Diffstat (limited to 'vim-mode')
-rw-r--r-- | vim-mode/vim_mode.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 9d3314d..5c07030 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -1053,7 +1053,7 @@ sub cmd_movement_g { } elsif ($char eq 'E') { $input = reverse $input; $pos = _beginning_of_WORD($input, $count, length($input) - $pos - 1); - if ($pos == -1) { + if ($pos == -1 or length($input) - $pos - 1 == -1) { cmd_movement_0(); } else { _input_pos(length($input) - $pos - 1); |