From bb9e23a6385675fa073ec187ba84d3fd8636dfc2 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 21 May 2022 14:03:06 -0700 Subject: support for naming points There's still an absence of affordance showing when you're in naming mode. --- text.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'text.lua') diff --git a/text.lua b/text.lua index 8888644..992b449 100644 --- a/text.lua +++ b/text.lua @@ -102,11 +102,9 @@ function Text.compute_fragments(line, line_width) end end -function love.textinput(t) +function Text.textinput(t) if love.mouse.isDown('1') then return end - if Lines[Cursor_line].mode == 'drawing' then return end Text.insert_at_cursor(t) - save_to_disk(Lines, Filename) end function Text.insert_at_cursor(t) -- cgit 1.4.1-2-gfad0