fix a stupid bug
This commit is contained in:
parent
7ae717aeae
commit
e2a3b0eda0
2
edit.lua
2
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
|
||||
|
|
Loading…
Reference in New Issue