// Start the prompt with history enabled.
jqconsole.Prompt(true, function (input) {
// Output input with the class jqconsole-output.
- if (input[0] == ',')
+ if (input[0] != ','){
jqconsole.Write(JSON.stringify(lisp.evalString(input)) + '\n', 'jqconsole-output');
- jqconsole.Write(JSON.stringify(lisp.compileString(input)) + '\n', 'jqconsole-output');
+ } else {
+ jqconsole.Write(JSON.stringify(lisp.compileString(input.slice(0))) + '\n', 'jqconsole-output');
+ }
// Restart the prompt.
startPrompt();
});