From: Ben Harris Date: Wed, 8 Oct 2025 08:50:51 +0000 (+0100) Subject: webstead: reset form at start of from_c() X-Git-Tag: bedstead-3.261~42 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=212db5dd91b1cc40e86d8cdcd449ba88262fb958;p=bedstead.git webstead: reset form at start of from_c() That way we don't get fragments of the old glyph if it stops early. --- 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) {