diff --git a/web/zc.js b/web/zc.js index 84b0d2dd..69eca737 100644 --- a/web/zc.js +++ b/web/zc.js @@ -19,6 +19,10 @@ function submit() { } else { stackHist.push(zcStack()) for (let l of line.split("\n")) { + l = l.trim() + if (l === "" ) { + continue + } result = zcEval(l) commandHist.unshift(line) if (result.error != '') {