fix a stupid bug

This commit is contained in:
Kartik K. Agaram 2024-08-28 20:22:00 -07:00
parent 7ae717aeae
commit e2a3b0eda0
1 changed files with 1 additions and 1 deletions

View File

@ -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