aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-02 17:06:42 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-02 17:06:42 +0000
commit48828d5e44e3ec22176a6ffe1f3a91a606027316 (patch)
treed222d409e9e9a6ee0ca61c79d0b876b5bcae2b3a /vim-mode/vim_mode.pl
parentvim_mode: Fix j from destroying the input line. (diff)
downloadirssi-scripts-48828d5e44e3ec22176a6ffe1f3a91a606027316.tar.gz
irssi-scripts-48828d5e44e3ec22176a6ffe1f3a91a606027316.zip
vim_mode: Fix crash when pressing , or ; before f,t,F,T.
Diffstat (limited to 'vim-mode/vim_mode.pl')
-rw-r--r--vim-mode/vim_mode.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 1c282ad..42fa18c 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -606,7 +606,7 @@ sub _next_occurrence {
sub cmd_movement_semicolon {
my ($count, $pos, $repeat) = @_;
- return (undef, undef) if not defined $last_ftFT;
+ return (undef, undef) if not defined $last_ftFT->{type};
(undef, $pos)
= $movements->{$last_ftFT->{type}}
@@ -616,7 +616,7 @@ sub cmd_movement_semicolon {
sub cmd_movement_comma {
my ($count, $pos, $repeat) = @_;
- return (undef, undef) if not defined $last_ftFT;
+ return (undef, undef) if not defined $last_ftFT->{type};
# Change direction.
my $save = $last_ftFT->{type};