From 724b2059890adb72a940fdc6f7c02613da5dc0e8 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 1 Oct 2010 20:56:05 +0200 Subject: vim_mode: Fix gE in first word on line. --- vim-mode/vim_mode.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vim-mode') 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); -- cgit v1.2.3