From bbff4c5f32d88a4799ecf917a63b79abe610e93e Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 29 May 2013 02:50:58 -0500 Subject: don't run mangle_line on eof --- lib/App/REPL.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/App/REPL.pm b/lib/App/REPL.pm index 5aa54fb..28837d4 100644 --- a/lib/App/REPL.pm +++ b/lib/App/REPL.pm @@ -61,7 +61,8 @@ sub _read { $self->_wrapped_plugin('display_prompt'); my ($line) = $self->_wrapped_plugin('read_line'); - ($line) = $self->_chained_plugin('mangle_line', $line); + ($line) = $self->_chained_plugin('mangle_line', $line) + if defined $line; return $line; } -- cgit v1.2.3-54-g00ecf