add args to some functions
[?]
Jul 8, 2022, 11:11 PM
T57DTBX6J7E7FVEX4LQWXNKR7YXIHJW4HBCHUOYA5PTJUOEYHTEACDependencies
- [2]
IWYLK45Kclicking to the right of a line within line width - [3]
KCLRP4VWrename a couple of variables - [4]
BOFNXP5Gclicking now moves the cursor even on long, wrapped lines - [5]
ULKLJBN6couple of renames - [6]
76AIXR7Hbugfix - [7]
ZPUQSPQPextract a few methods - [8]
4VKEE43Zbugfix - [9]
MP2TBKU6bugfix: crash in Text.up() after return - [10]
DAENUOGVeliminate assumptions that line length == size in bytes - [11]
V5MJRFOZbugfix: down arrow doesn't scroll up unnecessarily - [12]
LAW2O3NWextract variable Margin_left - [13]
2RXZ3PGObeginning of a new approach to scroll+wrap - [14]
CPZGQT72go through and fix similar issues - [15]
MYC7XR5Qbugfix: lines that aren't drawn from the start - [16]
ZHLO7K3Madd args to some functions - [17]
5Q6NIG66bugfix - [18]
5L7K4GBDclicking to the right of a wrapped line - [19]
IMEJA43Lsnapshot - [20]
BULPIBEGbeginnings of a module for the text editor - [21]
DFSDPDO7bugfix - [22]
5FW7YOFThighlight selection while dragging - [23]
CUIV2LE5some typos - [24]
GGJEDJOOadd args to some functions
Change contents
- replacement in text.lua at line 432
Cursor1.pos = screen_line_starting_pos + Text.nearest_cursor_pos(s, Cursor_x) - 1Cursor1.pos = screen_line_starting_pos + Text.nearest_cursor_pos(s, Cursor_x, left) - 1 - replacement in text.lua at line 451
Cursor1.pos = new_screen_line_starting_pos + Text.nearest_cursor_pos(s, Cursor_x) - 1Cursor1.pos = new_screen_line_starting_pos + Text.nearest_cursor_pos(s, Cursor_x, left) - 1 - replacement in text.lua at line 467
Cursor1.pos = Text.nearest_cursor_pos(Lines[Cursor1.line].data, Cursor_x)Cursor1.pos = Text.nearest_cursor_pos(Lines[Cursor1.line].data, Cursor_x, left) - replacement in text.lua at line 490
Cursor1.pos = new_screen_line_starting_pos + Text.nearest_cursor_pos(s, Cursor_x) - 1Cursor1.pos = new_screen_line_starting_pos + Text.nearest_cursor_pos(s, Cursor_x, left) - 1 - replacement in text.lua at line 697
--? print('return', mx, Text.nearest_cursor_pos(s, mx), '=>', screen_line_starting_pos + Text.nearest_cursor_pos(s, mx) - 1)return screen_line_starting_pos + Text.nearest_cursor_pos(s, mx) - 1--? print('return', mx, Text.nearest_cursor_pos(s, mx, left), '=>', screen_line_starting_pos + Text.nearest_cursor_pos(s, mx, left) - 1)return screen_line_starting_pos + Text.nearest_cursor_pos(s, mx, left) - 1 - replacement in text.lua at line 742
function Text.nearest_cursor_pos(line, x) -- x includes left margin-- convert x pixel coordinate to pos-- oblivious to wrappingfunction Text.nearest_cursor_pos(line, x, left) - replacement in text.lua at line 749
local max_x = Margin_left+Text.x(line, len+1)local max_x = left+Text.x(line, len+1) - replacement in text.lua at line 761
local currxmin = Margin_left+Text.x(line, curr)local currxmax = Margin_left+Text.x(line, curr+1)local currxmin = left+Text.x(line, curr)local currxmax = left+Text.x(line, curr+1)