aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-01 18:56:05 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-01 18:56:05 +0000
commit724b2059890adb72a940fdc6f7c02613da5dc0e8 (patch)
tree34059c3c5c21493f08cf98705600bdbfc4361e7b /vim-mode/vim_mode.pl
parentvim_mode: Fix W between words. (diff)
downloadirssi-scripts-724b2059890adb72a940fdc6f7c02613da5dc0e8.tar.gz
irssi-scripts-724b2059890adb72a940fdc6f7c02613da5dc0e8.zip
vim_mode: Fix gE in first word on line.
Diffstat (limited to 'vim-mode/vim_mode.pl')
-rw-r--r--vim-mode/vim_mode.pl2
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);