diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-10-02 17:06:42 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-10-02 17:06:42 +0000 |
commit | 48828d5e44e3ec22176a6ffe1f3a91a606027316 (patch) | |
tree | d222d409e9e9a6ee0ca61c79d0b876b5bcae2b3a /vim-mode/vim_mode.pl | |
parent | vim_mode: Fix j from destroying the input line. (diff) | |
download | irssi-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.pl | 4 |
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}; |