Fix the "only warn about term once" logic
git-svn-id: http://dev.catalyst.perl.org/repos/bast/trunk/Devel-REPL@4513
bd8105ee-0ff8-0310-8827-fb3f25b6796d
before 'read' => sub {
my ($self) = @_;
- unless ($self->term->isa("Term::ReadLine::Gnu") and !$self->no_term_class_warning) {
+ if (!$self->term->isa("Term::ReadLine::Gnu") and !$self->no_term_class_warning) {
warn "Term::ReadLine::Gnu is required for the Completion plugin to work";
$self->no_term_class_warning(1);
}