From e2a3b0eda0d50b03d7e5ab650fd5300d3d6f2a1a Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 28 Aug 2024 20:22:00 -0700 Subject: [PATCH] fix a stupid bug --- edit.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit.lua b/edit.lua index 008491b..da7214b 100644 --- a/edit.lua +++ b/edit.lua @@ -332,7 +332,7 @@ function edit.text_input(Editor, t) Text.search_next(Editor) return end - if edit.to_coord(Editor, Editor.cursor) then return end -- cursor is off screen + if edit.to_coord(Editor, Editor.cursor) == nil then return end -- cursor is off screen -- to be precise, the top-left corner of the cursor is off screen -- for drawings the cursor is large, which can still be a bit strange -- large selections can also be strange, though the actual cursor would still be small