Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Correctly check for valid input from the secondary prompt.
  • Loading branch information
peschwa committed Mar 30, 2015
1 parent 7110fdb commit f26fcba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Perl6/Compiler.nqp
Expand Up @@ -49,7 +49,10 @@ class Perl6::Compiler is HLL::Compiler {

method interactive(*%adverbs) {
my $*moreinput := sub ($cursor) {
my $more := nqp::readlineintfh(nqp::getstdin, '* ');
my str $more := nqp::readlineintfh(nqp::getstdin, '* ');
if nqp::isnull_s($more) {
$more := '';
}
$cursor."!APPEND_TO_ORIG"($more);
}
my $super := nqp::findmethod(HLL::Compiler, 'interactive');
Expand Down

0 comments on commit f26fcba

Please sign in to comment.