quite the frustrating bugfix
[?]
May 23, 2022, 10:34 PM
JRGTJ2IWQNANG72AGF7NONNQ2LARCG66BY4OVDMGTN65UW2HVA6ACDependencies
- [2]
IMEJA43Lsnapshot - [3]
2RXZ3PGObeginning of a new approach to scroll+wrap - [4]
WLHI7KD3new globals: draw partial screen line up top - [5]
QYIFOHW3first test! - [6]
ESETRNLBbugfix: printing the first part of a line at the bottom made it seem non-wrapping - [7]
YTSPVDZHfirst successful pagedown test, first bug found by test - [8]
H2DPLWMVsnapshot: wrapping long lines at word boundaries - [9]
BOFNXP5Gclicking now moves the cursor even on long, wrapped lines - [10]
MGT5FTJ3first stab at supporting wrapping in cursor up - [*]
BULPIBEGbeginnings of a module for the text editor
Change contents
- replacement in text.lua at line 28
print(x, frag, frag_width, line_width)local s=tostringprint('('..s(x)..','..s(y)..') '..frag..'('..s(frag_width)..' vs '..s(line_width)..') '..s(line_index)..' vs '..s(Screen_top1.line)..'; '..s(pos)..' vs '..s(Screen_top1.pos)) - replacement in text.lua at line 32
-- I no longer remember why the fuck I added this-- don't update y above screen top - replacement in text.lua at line 45
print(line_index, Screen_top1.line, pos, Screen_top1.pos)-- if we updated y, check if we're done with the screen - replacement in text.lua at line 47
print('a')if y + math.floor(15*Zoom) >= App.screen.height thenprint('a')if y + math.floor(15*Zoom) > App.screen.height then - edit in text.lua at line 55
-- don't draw text above screen top