webstead: reset form at start of from_c()

That way we don't get fragments of the old glyph if it stops early.
This commit is contained in:
Ben Harris 2025-10-08 09:50:51 +01:00
parent 4d3b7ecc4c
commit 212db5dd91

View File

@ -77,6 +77,7 @@
}
function from_c(c) {
re = /[0-7]+/g;
document.querySelector('#inpane').reset();
for (row of document.querySelector('#pixels').rows) {
match = re.exec(c);
if (match == null) {