From: Sartak Date: Fri, 21 Sep 2007 04:07:48 +0000 (+0000) Subject: Color compile-time warnings X-Git-Tag: v1.003015~150 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=81d2f8e6b31c924b068e571a2b861f1ebaadf1af;p=p5sagit%2FDevel-REPL.git Color compile-time warnings git-svn-id: http://dev.catalyst.perl.org/repos/bast/trunk/Devel-REPL@3765 bd8105ee-0ff8-0310-8827-fb3f25b6796d --- diff --git a/lib/Devel/REPL/Plugin/Colors.pm b/lib/Devel/REPL/Plugin/Colors.pm index aa87abf..898437d 100644 --- a/lib/Devel/REPL/Plugin/Colors.pm +++ b/lib/Devel/REPL/Plugin/Colors.pm @@ -35,7 +35,7 @@ around print => sub { # get $self, so we localize $SIG{__WARN__} during eval so it can get # error_color -around execute => sub { +sub _wrap_warn { my $orig = shift; my $self = shift; @@ -51,6 +51,9 @@ around execute => sub { $orig->($self, @_); }; +around compile => \&_wrap_warn; +around execute => \&_wrap_warn; + 1; __END__