about summary refs log tree commit diff stats
path: root/select.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-07-17 09:19:53 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-07-17 09:19:53 -0700
commit2859063d9d10f05a3db695cf3ccd142a7432a43f (patch)
tree3c8c2f33d72965909d2cce1a258dbbde0f929bd8 /select.lua
parent6b3ddc816ff6784ed36d6254d35c8d12ada28246 (diff)
downloadview.love-2859063d9d10f05a3db695cf3ccd142a7432a43f.tar.gz
switch to line index in a function
  - Text.to_pos_on_line
Diffstat (limited to 'select.lua')
-rw-r--r--select.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/select.lua b/select.lua
index 9e87081..a728f84 100644
--- a/select.lua
+++ b/select.lua
@@ -94,7 +94,7 @@ function Text.to_pos(State, x,y)
   for line_index,line in ipairs(State.lines) do
     if line.mode == 'text' then
       if Text.in_line(State, line_index, x,y) then
-        return line_index, Text.to_pos_on_line(State, line, x,y)
+        return line_index, Text.to_pos_on_line(State, line_index, x,y)
       end
     end
   end