about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--text.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/text.lua b/text.lua
index 97dcf7c..4f992d5 100644
--- a/text.lua
+++ b/text.lua
@@ -270,9 +270,9 @@ function Text.in_line(line, x,y)
   return x >= 16 and y >= line.y and y < line.y + math.floor(15*Zoom)
 end
 
-function Text.move_cursor(line_index, line, x)
+function Text.move_cursor(line_index, line, mx)
   Cursor_line = line_index
-  Cursor_pos = Text.nearest_cursor_pos(line.data, x)
+  Cursor_pos = Text.nearest_cursor_pos(line.data, mx)
 end
 
 function Text.nearest_cursor_pos(line, x, hint)