diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-07-08 15:37:09 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-07-08 15:37:09 -0700 |
commit | 00c64ed6e49fd679bb2d08dd076f585842bbf423 (patch) | |
tree | 0d8b4c55491236636886cc134fa735b4d230faf8 /select.lua | |
parent | a27dd15c1f0e69d2259bcc9a7c246edcd7200f67 (diff) | |
download | text.love-00c64ed6e49fd679bb2d08dd076f585842bbf423.tar.gz |
add args to some functions
- Text.in_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 1b57df2..ed79261 100644 --- a/select.lua +++ b/select.lua @@ -95,7 +95,7 @@ end 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) then + if Text.in_line(line, x,y, left, right) then return line_index, Text.to_pos_on_line(line, x,y) end end |