about summary refs log tree commit diff stats
path: root/select.lua
diff options
context:
space:
mode:
Diffstat (limited to 'select.lua')
-rw-r--r--select.lua2
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