From 2859063d9d10f05a3db695cf3ccd142a7432a43f Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 17 Jul 2022 09:19:53 -0700 Subject: switch to line index in a function - Text.to_pos_on_line --- select.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'select.lua') 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 -- cgit 1.4.1-2-gfad0