C42QQZSFFGU6DZ73MCPGYZJQ675YTMEOJAPQLHKRJLWQH5GMWHMQC Cursor_pos = Text.nearest_cursor_pos(Lines[Cursor_line].data, old_x)
if Lines[Cursor_line].screen_line_starting_pos == nil thenCursor_pos = Text.nearest_cursor_pos(Lines[Cursor_line].data, old_x)breakendlocal screen_line_starting_pos = Lines[Cursor_line].screen_line_starting_posscreen_line_starting_pos = screen_line_starting_pos[#screen_line_starting_pos]Top_screen_line_starting_pos = screen_line_starting_poslocal s = string.sub(Lines[Cursor_line].data, screen_line_starting_pos)Cursor_pos = screen_line_starting_pos + Text.nearest_cursor_pos(s, old_x) - 1