summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-05-29 02:50:58 -0500
committerJesse Luehrs <doy@tozt.net>2013-05-29 02:50:58 -0500
commitbbff4c5f32d88a4799ecf917a63b79abe610e93e (patch)
tree87b974b1f0234891f6ead62c37207a70eaa4af64
parent05721fa3a3e65f359f8c227e1786b963b5849e8a (diff)
downloadreply-bbff4c5f32d88a4799ecf917a63b79abe610e93e.tar.gz
reply-bbff4c5f32d88a4799ecf917a63b79abe610e93e.zip
don't run mangle_line on eof
-rw-r--r--lib/App/REPL.pm3
1 files changed, 2 insertions, 1 deletions
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;
}