summaryrefslogtreecommitdiffstats
path: root/lib/Reply/Plugin/ReadLine.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Reply/Plugin/ReadLine.pm')
-rw-r--r--lib/Reply/Plugin/ReadLine.pm2
1 files changed, 1 insertions, 1 deletions
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';