summaryrefslogtreecommitdiffstats
path: root/lib/App/REPL/Plugin/Defaults.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/App/REPL/Plugin/Defaults.pm')
-rw-r--r--lib/App/REPL/Plugin/Defaults.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/App/REPL/Plugin/Defaults.pm b/lib/App/REPL/Plugin/Defaults.pm
index b226dfd..74734b9 100644
--- a/lib/App/REPL/Plugin/Defaults.pm
+++ b/lib/App/REPL/Plugin/Defaults.pm
@@ -34,10 +34,10 @@ sub evaluate {
my ($next, $line, %args) = @_;
return eval_closure(
- source => "$PREFIX; $line",
+ source => "sub { $PREFIX; $line }",
terse_error => 1,
%args,
- );
+ )->();
}
sub print_error {