I feel confident now that page-down is working.
[?]
May 22, 2022, 3:52 AM
CVGE3SIGJRGCLY3A2RBPGFXAEKVZXUUIZQLRHJLM4VPUM4SHEZIACDependencies
- [2]
2RXZ3PGObeginning of a new approach to scroll+wrap - [3]
Y36LOGR5bugfix: show cursor when past end of line - [4]
537TQ2QNsome more logging - [5]
3TFEAQSWstart using some globals - [6]
242L3OQXbugfix: ensure Cursor_line is always on a text line - [7]
EWMPYCDObugfix - [8]
UWNHC4AAredo y computations - [9]
JY4VK7L2rename - [10]
4C375P53this is a bit clearer - [11]
H2DPLWMVsnapshot: wrapping long lines at word boundaries - [12]
B3IWYWSRdelete another arg that can be deduced - [13]
DAENUOGVeliminate assumptions that line length == size in bytes - [14]
BULPIBEGbeginnings of a module for the text editor - [15]
XNFTJHC4split keyboard handling between Text and Drawing - [16]
DLQMM265scroll past first page - [17]
BOFNXP5Gclicking now moves the cursor even on long, wrapped lines - [18]
RTDYYP4Hbugfix: text past cursor was rendered red on wrapped lines - [19]
5DOC2CBMextract a function - [*]
WLHI7KD3new globals: draw partial screen line up top - [*]
OTIBCAUJlove2d scaffold
Change contents
- edit in text.lua at line 8
-- return values:-- y coordinate drawn until in px-- position of start of final screen line drawn - edit in text.lua at line 17
local screen_line_starting_pos = 1 - edit in text.lua at line 31
if y + math.floor(15*Zoom) > Screen_height thenreturn y, screen_line_starting_posendscreen_line_starting_pos = pos - replacement in text.lua at line 63[3.144]→[3.2661:2672](∅→∅),[3.275]→[3.2661:2672](∅→∅),[3.310]→[3.2661:2672](∅→∅),[3.37]→[3.2661:2672](∅→∅)
return yreturn y, screen_line_starting_pos - replacement in main.lua at line 144
y = Text.draw(line, Line_width, line_index)y, Screen_bottom1.pos = Text.draw(line, Line_width, line_index) - edit in main.lua at line 149[22.416][3.3453]
--? print('screen bottom: '..tostring(Screen_bottom1.pos)..' in '..tostring(Lines[Screen_bottom1.line].data)) - replacement in main.lua at line 220
Screen_top1.pos = 1Screen_top1.pos = Screen_bottom1.pos