git-svn-id: http://dev.catalyst.perl.org/repos/bast/trunk/Devel-REPL@4322
bd8105ee-0ff8-0310-8827-fb3f25b6796d
default => sub { 0 },
);
+has no_term_class_warning => (
+ isa => "Bool",
+ is => "rw",
+ default => 0,
+);
+
sub BEFORE_PLUGIN {
my ($self) = @_;
};
}
+sub AFTER_PLUGIN {
+ my ($self) = @_;
+
+ warn "Term::ReadLine::Gnu is required for the Completion plugin to work"
+ unless $self->term->isa("Term::ReadLine::Gnu") and !$self->no_term_class_warning;
+}
+
sub _completion {
my ($self, $text, $line, $start, $end) = @_;