From 4fb4e0eb259367740b1e82fdc1161e39af93e87e Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 19 May 2022 22:02:49 -0700 Subject: [PATCH] rename --- text.lua | 4 ++-- 1 file 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)