diff options
Diffstat (limited to 'select.lua')
-rw-r--r-- | select.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/select.lua b/select.lua index 8c015f6..a6c271b 100644 --- a/select.lua +++ b/select.lua @@ -93,8 +93,8 @@ end function Text.to_pos(State, x,y, left, right) for line_index,line in ipairs(State.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, left, right) + if Text.in_line(State, line, x,y, left, right) then + return line_index, Text.to_pos_on_line(State, line, x,y, left, right) end end end |