don't try to append text to drawings

This commit is contained in:
Kartik K. Agaram 2022-05-16 22:14:30 -07:00
parent 399fed42d8
commit 9a54403aa3
1 changed files with 1 additions and 0 deletions

View File

@ -494,6 +494,7 @@ end
function love.textinput(t)
if love.mouse.isDown('1') then return end
if mouse_in_drawing() then return end
if type(lines[cursor_line]) == 'table' then return end
local byteoffset
if cursor_pos > 1 then
byteoffset = utf8.offset(lines[cursor_line], cursor_pos-1)