disable some debug prints
[?]
May 21, 2022, 5:46 AM
PYGMASTVHDTGX3LDTL364UWXEHVSWQ7STAJLZZI5YY6EA6EEICOACDependencies
- [2]
3CSIZJ33clearer comments - [3]
KJKKASHZreduce ambitions a bit: page up/down need not start screen from the middle of a line - [4]
TRNWIQN6more precise height calculation when scrolling up as much as possible while keeping cursor on screen - [5]
MGT5FTJ3first stab at supporting wrapping in cursor up - [6]
2POFQQLWkeep cursor on screen when pressing 'down' - [7]
XNFTJHC4split keyboard handling between Text and Drawing - [8]
DLQMM265scroll past first page - [9]
5ED3YGHWplanning out cursor up/down over wrapped lines - [10]
DXT4QTAHa few more integer coordinates - [11]
PR4KIAZDfirst stab at equally hacky cursor down support - [12]
SVJZZDC3snapshot - no, that's all wrong - [13]
537TQ2QNsome more logging - [14]
242L3OQXbugfix: ensure Cursor_line is always on a text line - [15]
H2DPLWMVsnapshot: wrapping long lines at word boundaries - [16]
C42QQZSFanother piece of support for line wrapping in cursor up - [*]
BULPIBEGbeginnings of a module for the text editor
Change contents
- replacement in text.lua at line 230
print('up', Cursor_pos, Top_screen_line_starting_pos)--? print('up', Cursor_pos, Top_screen_line_starting_pos) - replacement in text.lua at line 233
print('cursor is at first screen line of its line')--? print('cursor is at first screen line of its line') - replacement in text.lua at line 247
print('previous screen line starts at pos '..tostring(screen_line_starting_pos)..' of its line')--? print('previous screen line starts at pos '..tostring(screen_line_starting_pos)..' of its line') - replacement in text.lua at line 250
print('pos of top of screen is also '..tostring(Top_screen_line_starting_pos)..' of the same line')--? print('pos of top of screen is also '..tostring(Top_screen_line_starting_pos)..' of the same line') - replacement in text.lua at line 262
print('cursor is NOT at first screen line of its line')--? print('cursor is NOT at first screen line of its line') - replacement in text.lua at line 265
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 268
print('also setting pos of top of screen to '..tostring(Top_screen_line_starting_pos))--? print('also setting pos of top of screen to '..tostring(Top_screen_line_starting_pos)) - replacement in text.lua at line 272
print('cursor pos is now '..tostring(Cursor_pos))--? print('cursor pos is now '..tostring(Cursor_pos)) - replacement in text.lua at line 278
print('down: cursor at final screen line of its line')--? print('down: cursor at final screen line of its line') - replacement in text.lua at line 285
print(Cursor_pos)--? print(Cursor_pos) - replacement in text.lua at line 289
print(Cursor_line, Cursor_pos, Screen_bottom_line)--? print(Cursor_line, Cursor_pos, Screen_bottom_line) - replacement in text.lua at line 291
print('screen top before:', Screen_top_line, Top_screen_line_starting_pos)--? print('screen top before:', Screen_top_line, Top_screen_line_starting_pos) - replacement in text.lua at line 293
print('scroll up preserving cursor')--? print('scroll up preserving cursor') - replacement in text.lua at line 295
print('screen top after:', Screen_top_line, Top_screen_line_starting_pos)--? print('screen top after:', Screen_top_line, Top_screen_line_starting_pos) - replacement in text.lua at line 297
print('=>', Cursor_line, Cursor_pos, Screen_bottom_line)--? print('=>', Cursor_line, Cursor_pos, Screen_bottom_line) - replacement in text.lua at line 300
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 303
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 306
print('cursor pos is now '..tostring(Cursor_pos))--? print('cursor pos is now '..tostring(Cursor_pos)) - replacement in text.lua at line 308
print('scroll up preserving cursor')--? print('scroll up preserving cursor') - replacement in text.lua at line 310
print('screen top after:', Screen_top_line, Top_screen_line_starting_pos)--? print('screen top after:', Screen_top_line, Top_screen_line_starting_pos) - replacement in text.lua at line 357
print('cursor pos '..tostring(Cursor_pos)..' is on the #'..tostring(cursor_pos_screen_lines)..' screen line down')--? print('cursor pos '..tostring(Cursor_pos)..' is on the #'..tostring(cursor_pos_screen_lines)..' screen line down') - replacement in text.lua at line 362
print('y', y)--? print('y', y) - replacement in text.lua at line 372
print('height:', h)--? print('height:', h)