From ffb7d66db4218abc93a408fc7981d51fe903c4eb Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 1 Oct 2010 18:39:17 +0200 Subject: vim_mode: Fix _beginning_of_WORD() at end of the line. --- vim-mode/vim_mode.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vim-mode/vim_mode.pl') diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 16e8ec0..4a01921 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -721,7 +721,7 @@ sub _beginning_of_WORD { while ($count-- > 0 and length($input) > $pos) { if (substr($input, $pos + 1) !~ /\s+/) { - return cmd_movement_dollar(); + return length($input); } $pos += $+[0] + 1; } -- cgit v1.2.3