From: David Vazquez Date: Sat, 22 Dec 2012 15:48:16 +0000 (+0000) Subject: , prefix in the REPL to compile X-Git-Url: http://repo.macrolet.net/gitweb/?a=commitdiff_plain;h=ba6c08871676f70a779acffd50d48526fb8a9ddc;p=jscl.git , prefix in the REPL to compile --- diff --git a/test.html b/test.html index 322ccbf..c8cb256 100644 --- a/test.html +++ b/test.html @@ -60,9 +60,11 @@ // 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(); });