Skip to content

Commit

Permalink
Fix REPL accidentally broken by pyodide#1167.
Browse files Browse the repository at this point in the history
  • Loading branch information
casatir committed Feb 3, 2021
1 parent b3a965a commit c468377
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/templates/console.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
prompt: ps1,
completionEscape: false,
completion: function(command, callback) {
callback(pyconsole.complete(command)[0]);
const completions = pyconsole.complete(command)[0];
callback(completions.deepCopyToJavascript());
}
}
);
Expand Down

0 comments on commit c468377

Please sign in to comment.