switch to line index in a function
[?]
Jul 17, 2022, 4:37 PM
WZFMGVDTNVWZUX46RMEP5XHRZRBKL5G262VAQUWP5AYY7TRXN5XACDependencies
- [2]
IWYLK45Kclicking to the right of a line within line width - [3]
BULPIBEGbeginnings of a module for the text editor - [4]
4VKEE43Zbugfix - [5]
76AIXR7Hbugfix - [6]
5L7K4GBDclicking to the right of a wrapped line - [7]
BOFNXP5Gclicking now moves the cursor even on long, wrapped lines - [8]
2RXZ3PGObeginning of a new approach to scroll+wrap - [9]
IMEJA43Lsnapshot - [10]
MYC7XR5Qbugfix: lines that aren't drawn from the start - [11]
J6WEC2D6. - [12]
LF7BWEG4group all editor globals - [13]
T57DTBX6add args to some functions
Change contents
- replacement in text.lua at line 725
if screen_line_index < #line.screen_line_starting_pos and mx > Text.screen_line_width(line, screen_line_index) thenif screen_line_index < #line.screen_line_starting_pos and mx > Text.screen_line_width(State, line_index, screen_line_index) then - replacement in text.lua at line 738
function Text.screen_line_width(line, i)function Text.screen_line_width(State, line_index, i)local line = State.lines[line_index]