From b609b6633ccf1cf25872d3171872001ec23fea73 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Thu, 24 Feb 2011 02:00:40 +0000 Subject: defined check to prevent a warning in flush_input_buffer() [thanks DE1] --- vim-mode/vim_mode.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vim-mode') diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index d850d63..7f4832e 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -2414,7 +2414,7 @@ sub handle_input_buffer { } sub flush_input_buffer { - Irssi::timeout_remove($input_buf_timer); + Irssi::timeout_remove($input_buf_timer) if defined $input_buf_timer; $input_buf_timer = undef; # see what we've collected. print "Input buffer flushed" if DEBUG; -- cgit v1.2.3