diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-07-08 15:45:45 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-07-08 15:45:45 -0700 |
commit | abcc18002bf036ab01115447cabb9321767c71fb (patch) | |
tree | 847286fd7ae6187782a40d94dfcc8fd61d975f15 /select.lua | |
parent | 9fb8f25030de2f9eff87003a1ff71e3bc5fdbc94 (diff) | |
download | text.love-abcc18002bf036ab01115447cabb9321767c71fb.tar.gz |
add args to some functions
- Text.to_pos_on_line
Diffstat (limited to 'select.lua')
-rw-r--r-- | select.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/select.lua b/select.lua index ed79261..05d4cd9 100644 --- a/select.lua +++ b/select.lua @@ -96,7 +96,7 @@ function Text.to_pos(x,y, left, right) for line_index,line in ipairs(Lines) do if line.mode == 'text' then if Text.in_line(line, x,y, left, right) then - return line_index, Text.to_pos_on_line(line, x,y) + return line_index, Text.to_pos_on_line(line, x,y, left, right) end end end |