Skip to content

Commit

Permalink
fix multiline issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-mcgann committed Mar 5, 2024
1 parent 0f42a3d commit af795ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/zc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 != '') {
Expand Down

0 comments on commit af795ab

Please sign in to comment.