disable all debug prints
[?]
May 23, 2022, 10:38 PM
MDXGMZU2MBEDMTB755D3RRYEFKF54GTTYTI5XJYKKKN5ZFQWZXTACDependencies
- [2]
JRGTJ2IWquite the frustrating bugfix - [3]
WLHI7KD3new globals: draw partial screen line up top - [4]
QYIFOHW3first test! - [5]
CA5T33FGone more implication - [6]
YTSPVDZHfirst successful pagedown test, first bug found by test - [7]
H2DPLWMVsnapshot: wrapping long lines at word boundaries - [8]
2POFQQLWkeep cursor on screen when pressing 'down' - [9]
BOFNXP5Gclicking now moves the cursor even on long, wrapped lines - [10]
SVJZZDC3snapshot - no, that's all wrong - [11]
AVTNUQYRbasic test-enabled framework - [12]
IMEJA43Lsnapshot - [13]
DLQMM265scroll past first page - [14]
KJKKASHZreduce ambitions a bit: page up/down need not start screen from the middle of a line - [15]
3OKKTUT4up and down arrow now moving by screen line where possible - [16]
XNFTJHC4split keyboard handling between Text and Drawing - [17]
TRNWIQN6more precise height calculation when scrolling up as much as possible while keeping cursor on screen - [18]
242L3OQXbugfix: ensure Cursor_line is always on a text line - [19]
ESETRNLBbugfix: printing the first part of a line at the bottom made it seem non-wrapping - [20]
AIRIP35Zcleaner - [21]
PFT5Y2ZYmove - [22]
PR4KIAZDfirst stab at equally hacky cursor down support - [23]
MGT5FTJ3first stab at supporting wrapping in cursor up - [24]
U7M4M2F7bugfix: don't rely on Screen_bottom1 while scrolling - [25]
PYGMASTVdisable some debug prints - [26]
CVGE3SIGI feel confident now that page-down is working. - [27]
2RXZ3PGObeginning of a new approach to scroll+wrap - [*]
BULPIBEGbeginnings of a module for the text editor - [*]
OTIBCAUJlove2d scaffold - [*]
3QNOKBFMbeginnings of a test harness
Change contents
- replacement in text.lua at line 29
print('('..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))--? print('('..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 33
if line_index > Screen_top1.line or pos > Screen_top1.pos thenif line_index > Screen_top1.line or pos >= Screen_top1.pos then - replacement in text.lua at line 46
if line_index > Screen_top1.line or pos > Screen_top1.pos thenprint('a')if line_index > Screen_top1.line or pos >= Screen_top1.pos then--? print('a') - replacement in text.lua at line 49
print('b', y, App.screen.height)--? print('b', y, App.screen.height) - replacement in text.lua at line 403
print(frag, x, frag_width, line_width)--? print(frag, x, frag_width, line_width) - replacement in text.lua at line 411
print(frag, x, frag1_width, line_width)--? print(frag, x, frag1_width, line_width) - replacement in text.lua at line 598
print('down', Cursor1.line, Cursor1.pos, Screen_top1.line, Screen_top1.pos, Screen_bottom1.line, Screen_bottom1.pos)--? print('down', Cursor1.line, Cursor1.pos, Screen_top1.line, Screen_top1.pos, Screen_bottom1.line, Screen_bottom1.pos) - replacement in text.lua at line 601
print('cursor at final screen line of its line')--? print('cursor at final screen line of its line') - replacement in text.lua at line 609
print(Cursor1.pos)--? print(Cursor1.pos) - replacement in text.lua at line 614
print('screen top before:', Screen_top1.line, Screen_top1.pos)--? print('screen top before:', Screen_top1.line, Screen_top1.pos) - replacement in text.lua at line 616
print('scroll up preserving cursor')--? print('scroll up preserving cursor') - replacement in text.lua at line 618
print('screen top after:', Screen_top1.line, Screen_top1.pos)--? print('screen top after:', Screen_top1.line, Screen_top1.pos) - replacement in text.lua at line 622
print('cursor is NOT at final screen line of its line')--? print('cursor is NOT at final screen line of its line') - replacement in text.lua at line 625
print('switching pos of screen line at cursor from '..tostring(screen_line_starting_pos)..' to '..tostring(new_screen_line_starting_pos))--? print('switching pos of screen line at cursor from '..tostring(screen_line_starting_pos)..' to '..tostring(new_screen_line_starting_pos)) - replacement in text.lua at line 628
print('cursor pos is now', Cursor1.line, Cursor1.pos)--? print('cursor pos is now', Cursor1.line, Cursor1.pos) - replacement in text.lua at line 630
print('scroll up preserving cursor')--? print('scroll up preserving cursor') - replacement in text.lua at line 632
print('screen top after:', Screen_top1.line, Screen_top1.pos)--? print('screen top after:', Screen_top1.line, Screen_top1.pos) - replacement in text.lua at line 634
print('=>', Cursor1.line, Cursor1.pos, Screen_top1.line, Screen_top1.pos, Screen_bottom1.line, Screen_bottom1.pos)--? print('=>', Cursor1.line, Cursor1.pos, Screen_top1.line, Screen_top1.pos, Screen_bottom1.line, Screen_bottom1.pos) - replacement in text.lua at line 656
print(screen_lines[#screen_lines], Cursor1.pos)--? print(screen_lines[#screen_lines], Cursor1.pos) - replacement in text.lua at line 666
print('cursor skips', Cursor1.line)--? print('cursor skips', Cursor1.line) - replacement in text.lua at line 678
print('scroll up')--? print('scroll up') - replacement in main.lua at line 234
print('setting top to', Screen_top1.line)--? print('setting top to', Screen_top1.line) - replacement in main.lua at line 238
print('top now', Screen_top1.line)--? print('top now', Screen_top1.line) - replacement in app.lua at line 141
print('drawing "'..msg..'" at y '..tostring(y))--? print('drawing "'..msg..'" at y '..tostring(y))