From: Chris Marshall Date: Wed, 12 May 2010 22:36:43 +0000 (-0400) Subject: Fix typo in ReadLineHistory plugin X-Git-Tag: v1.003015~41 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4906ca4e09303a2703c2d0f93d0ea5c46ec900d5;p=p5sagit%2FDevel-REPL.git Fix typo in ReadLineHistory plugin ReadLineHistory needs more work for full support of Term::ReadLine::Perl since it does not have methods for ReadHistory and WriteHistory. --- diff --git a/lib/Devel/REPL/Plugin/ReadLineHistory.pm b/lib/Devel/REPL/Plugin/ReadLineHistory.pm index 711aa3d..61ad9c0 100644 --- a/lib/Devel/REPL/Plugin/ReadLineHistory.pm +++ b/lib/Devel/REPL/Plugin/ReadLineHistory.pm @@ -20,10 +20,10 @@ my $hist_len=$ENV{PERLREPL_HISTLEN} || 100; around 'run' => sub { my $orig=shift; my ($self, @args)=@_; - if ($self->term->Attribs->{ReadLine} eq 'Term::ReadLine::Gnu') { + if ($self->term->ReadLine eq 'Term::ReadLine::Gnu') { $self->term->stifle_history($hist_len); } - if ($self->term->Attribs->{ReadLine} eq 'Term::ReadLine::Perl') { + if ($self->term->ReadLine eq 'Term::ReadLine::Perl') { $self->term->Attribs->{MaxHistorySize} = $hist_len; } -f($hist_file) && $self->term->ReadHistory($hist_file);