X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=test.html;h=ec43a81a76de2c994fbbe64521ef23a1645ae55c;hb=3eb043e814a43ce8fcb12e4121225ad484f00671;hp=322ccbf60fafb61a7bb9d2ad49a598af7abe81f1;hpb=303e467bad4e9f81e33fd5199356caeeae94191d;p=jscl.git diff --git a/test.html b/test.html index 322ccbf..ec43a81 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(1))) + '\n', 'jqconsole-output'); + } // Restart the prompt. startPrompt(); });