From 48828d5e44e3ec22176a6ffe1f3a91a606027316 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 2 Oct 2010 19:06:42 +0200 Subject: vim_mode: Fix crash when pressing , or ; before f,t,F,T. --- vim-mode/vim_mode.pl | 4 ++-- 1 file 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}; -- cgit v1.2.3