diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-05-16 22:14:30 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-05-16 22:14:30 -0700 |
commit | 9a54403aa3becd0cdc535d0e4cfe05eeec533285 (patch) | |
tree | ae38ac9e6d2961cd2137953045fbd3f4d91f0db1 | |
parent | 399fed42d884df9ab08c5cce4a6c57fb3a986256 (diff) | |
download | lines.love-9a54403aa3becd0cdc535d0e4cfe05eeec533285.tar.gz |
don't try to append text to drawings
-rw-r--r-- | main.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main.lua b/main.lua index f7f1e35..28e641d 100644 --- a/main.lua +++ b/main.lua @@ -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) |