about summary refs log tree commit diff stats
path: root/main.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-07-08 08:51:42 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-07-08 09:44:49 -0700
commit048b6d9d3aa0b58c13018d869ce46359a778462b (patch)
tree88fcc50cd4e9f32a1be8d14a1855672190fb0c53 /main.lua
parentcff1e58cf62e048380e5fcec363d1ff36fc134db (diff)
downloadtext.love-048b6d9d3aa0b58c13018d869ce46359a778462b.tar.gz
drop an arg from a function
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.lua b/main.lua
index 051a01e..b95fb00 100644
--- a/main.lua
+++ b/main.lua
@@ -338,7 +338,7 @@ function App.mousepressed(x,y, mouse_button)
 
   for line_index,line in ipairs(Lines) do
     if line.mode == 'text' then
-      if Text.in_line(line_index,line, x,y) then
+      if Text.in_line(line, x,y) then
         -- delicate dance between cursor, selection and old cursor/selection
         -- scenarios:
         --  regular press+release: sets cursor, clears selection
@@ -382,7 +382,7 @@ function App.mousereleased(x,y, button)
   else
     for line_index,line in ipairs(Lines) do
       if line.mode == 'text' then
-        if Text.in_line(line_index,line, x,y) then
+        if Text.in_line(line, x,y) then
 --?           print('reset selection')
           Cursor1 = {line=line_index, pos=Text.to_pos_on_line(line, x, y)}
 --?           print('cursor', Cursor1.line, Cursor1.pos)