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]
BULPIBEGbeginnings of a module for the text editor - [5]
2RXZ3PGObeginning of a new approach to scroll+wrap - [6]
76AIXR7Hbugfix - [7]
BOFNXP5Gclicking now moves the cursor even on long, wrapped lines - [8]
V5MJRFOZbugfix: down arrow doesn't scroll up unnecessarily - [9]
5FW7YOFThighlight selection while dragging - [10]
5Q6NIG66bugfix - [11]
LAW2O3NWextract variable Margin_left - [12]
DFSDPDO7bugfix - [13]
IMEJA43Lsnapshot - [14]
4VKEE43Zbugfix - [15]
CPZGQT72go through and fix similar issues - [16]
5L7K4GBDclicking to the right of a wrapped line - [17]
ZPUQSPQPextract a few methods - [18]
CUIV2LE5some typos - [19]
DAENUOGVeliminate assumptions that line length == size in bytes - [20]
MYC7XR5Qbugfix: lines that aren't drawn from the start - [21]
ULKLJBN6couple of renames - [22]
ZHLO7K3Madd args to some functions - [23]
GGJEDJOOadd args to some functions - [24]
MP2TBKU6bugfix: crash in Text.up() after return
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)