Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use nqp; when loading Linenoise for tab completion
Otherwise we get a warning
  • Loading branch information
hoelzro committed Apr 23, 2015
1 parent 83fd4f4 commit 86f277b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Compiler.nqp
Expand Up @@ -91,7 +91,7 @@ class Perl6::Compiler is HLL::Compiler {

method interactive(*%adverbs) {
try {
my @symbols := self.eval("use Linenoise; nqp::list(&linenoise, &linenoiseHistoryAdd, &linenoiseSetCompletionCallback, &linenoiseAddCompletion)");
my @symbols := self.eval("use nqp; use Linenoise; nqp::list(&linenoise, &linenoiseHistoryAdd, &linenoiseSetCompletionCallback, &linenoiseAddCompletion)");

$!linenoise := @symbols[0];
$!linenoise_add_history := @symbols[1];
Expand Down

0 comments on commit 86f277b

Please sign in to comment.