r63228@onn: sartak | 2008-06-25 05:01:43 -0400
[p5sagit/Devel-REPL.git] / lib / Devel / REPL / Plugin / Completion.pm
index 05fca4f..ebafa2e 100644 (file)
@@ -27,7 +27,7 @@ has no_term_class_warning => (
 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);
   }