aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-01 16:39:17 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-01 16:43:27 +0000
commitffb7d66db4218abc93a408fc7981d51fe903c4eb (patch)
treeae6bac3766e529c571016ab95f58ca78829d29e1 /vim-mode
parentvim_mode: Add known bugs. (diff)
downloadirssi-scripts-ffb7d66db4218abc93a408fc7981d51fe903c4eb.tar.gz
irssi-scripts-ffb7d66db4218abc93a408fc7981d51fe903c4eb.zip
vim_mode: Fix _beginning_of_WORD() at end of the line.
Diffstat (limited to 'vim-mode')
-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 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;
}