rename
This commit is contained in:
parent
89b3c7a64f
commit
399fed42d8
4
main.lua
4
main.lua
|
@ -493,7 +493,7 @@ end
|
|||
|
||||
function love.textinput(t)
|
||||
if love.mouse.isDown('1') then return end
|
||||
if in_drawing() then return end
|
||||
if mouse_in_drawing() then return end
|
||||
local byteoffset
|
||||
if cursor_pos > 1 then
|
||||
byteoffset = utf8.offset(lines[cursor_line], cursor_pos-1)
|
||||
|
@ -749,7 +749,7 @@ function nearest_cursor_pos(line, x, hint)
|
|||
return right
|
||||
end
|
||||
|
||||
function in_drawing()
|
||||
function mouse_in_drawing()
|
||||
local x, y = love.mouse.getX(), love.mouse.getY()
|
||||
for _,drawing in ipairs(lines) do
|
||||
if type(drawing) == 'table' then
|
||||
|
|
Loading…
Reference in New Issue