diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-06-12 07:20:14 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-06-12 07:20:14 -0700 |
commit | e4e12c77ad2ade64563c97471852b6822766b39e (patch) | |
tree | b92af96e922bb242fbe2e058613601d6117edc45 | |
parent | ff88a2a927f3088083c6a8f4415e7d71e379f42e (diff) | |
download | text.love-e4e12c77ad2ade64563c97471852b6822766b39e.tar.gz |
fix a second BSOD in #4 :/
I need more tests.
-rw-r--r-- | select.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/select.lua b/select.lua index db875e3..a238c7c 100644 --- a/select.lua +++ b/select.lua @@ -95,7 +95,7 @@ end function Text.to_pos(x,y) 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_index,line, x,y) then return line_index, Text.to_pos_on_line(line, x,y) end end |