From 45e08407c4d41765ab23df1c0a5f0c2e4bdc158a Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 3 Jun 2013 15:54:25 -0500 Subject: oops, undef is valid here --- lib/Reply/Plugin/ReadLine.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Reply/Plugin/ReadLine.pm b/lib/Reply/Plugin/ReadLine.pm index 6fcb0ad..7c4ddd0 100644 --- a/lib/Reply/Plugin/ReadLine.pm +++ b/lib/Reply/Plugin/ReadLine.pm @@ -75,7 +75,7 @@ sub read_line { sub DESTROY { my $self = shift; - return if $self->{history_length} == 0; + return if defined $self->{history_length} && $self->{history_length} == 0; # XXX support more later return unless $self->{term}->ReadLine eq 'Term::ReadLine::Gnu'; -- cgit v1.2.3-54-g00ecf