From 212db5dd91b1cc40e86d8cdcd449ba88262fb958 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Wed, 8 Oct 2025 09:50:51 +0100 Subject: [PATCH] webstead: reset form at start of from_c() That way we don't get fragments of the old glyph if it stops early. --- webstead.xhtml | 1 + 1 file changed, 1 insertion(+) diff --git a/webstead.xhtml b/webstead.xhtml index 7dfcbb4..7f5e837 100644 --- a/webstead.xhtml +++ b/webstead.xhtml @@ -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) { -- 2.30.2