diff options
-rw-r--r-- | lib/Reply/Plugin/ReadLine.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Reply/Plugin/ReadLine.pm b/lib/Reply/Plugin/ReadLine.pm index 54c262b..39126d1 100644 --- a/lib/Reply/Plugin/ReadLine.pm +++ b/lib/Reply/Plugin/ReadLine.pm @@ -52,6 +52,8 @@ sub read_line { sub DESTROY { my $self = shift; + return if $self->{history_length} == 0; + # XXX support more later return unless $self->{term}->ReadLine eq 'Term::ReadLine::Gnu'; |