X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-REPL.git;a=blobdiff_plain;f=lib%2FDevel%2FREPL%2FPlugin%2FFancyPrompt.pm;h=25f322d3dc6ea9c0981a4ba7dcad4c231ad6f2b6;hp=ce0225a70c71351d3c0715c2e113f206e8d670cf;hb=moo;hpb=9b7bfb6ac233dca407f12db47aa8dda7c9c1d338 diff --git a/lib/Devel/REPL/Plugin/FancyPrompt.pm b/lib/Devel/REPL/Plugin/FancyPrompt.pm index ce0225a..25f322d 100644 --- a/lib/Devel/REPL/Plugin/FancyPrompt.pm +++ b/lib/Devel/REPL/Plugin/FancyPrompt.pm @@ -1,7 +1,7 @@ package Devel::REPL::Plugin::FancyPrompt; use Devel::REPL::Plugin; -use namespace::autoclean; +use namespace::sweep; has 'fancy_prompt' => ( is => 'rw', lazy => 1, @@ -34,7 +34,7 @@ has 'fancy_continuation_prompt' => ( ); has 'lines_read' => ( - is => 'rw', lazy => 1, default => 0, + is => 'rw', lazy => 1, default => sub { 0 }, ); around 'prompt' => sub {