about summary refs log tree commit diff stats
path: root/text.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-21 14:03:06 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-21 14:03:06 -0700
commitbb9e23a6385675fa073ec187ba84d3fd8636dfc2 (patch)
tree957d2a6072f4a634e2877ed216a67ffd9a6c522e /text.lua
parent96df1874883e9d9700be394df6bcafdf9e3ad4b7 (diff)
downloadtext.love-bb9e23a6385675fa073ec187ba84d3fd8636dfc2.tar.gz
support for naming points
There's still an absence of affordance showing when you're in naming mode.
Diffstat (limited to 'text.lua')
-rw-r--r--text.lua4
1 files changed, 1 insertions, 3 deletions
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)