From 972513ea75c42cac8466a366967d2e51e55cbc2e Mon Sep 17 00:00:00 2001 From: filifa Date: Thu, 11 Dec 2025 23:49:34 -0500 Subject: [PATCH] set expr as default input --- main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 27ae031..32ed12f 100644 --- a/main.js +++ b/main.js @@ -32,9 +32,9 @@ function evaluate() { } } -let currentInput = null; -let selectionStart = null; -let selectionEnd = null; +let currentInput = document.querySelector("#expr"); +let selectionStart = 0; +let selectionEnd = 0; function setCurrentInput() { currentInput = this;