extract scrolling logic out of insert_at_cursor
[?]
Jun 10, 2022, 6:29 PM
IRCKL6VNSFB7TQEKPQUPJCN37N5QW7D54DSZMESVXGK7NEHGSIPACDependencies
- [2]
QKAMUWSBanother bugfix in scrolling while inserting text - [3]
5ZFHMYQI. - [4]
UFIUYYYVadditional logging for an active bug - [5]
73OCE2MCafter much struggle, a brute-force undo - [6]
NZKYPBSKcheck for scroll when just typing - [7]
KOTI3MFGbugfix in previous commit - [8]
2RXZ3PGObeginning of a new approach to scroll+wrap - [9]
2ZYV7D3Whandle tab characters - [10]
XNFTJHC4split keyboard handling between Text and Drawing - [11]
WY3JD6W6bugfix - [12]
SLLR6KKIbugfix for non-ASCII - [13]
VJ77YABHmore efficient undo/redo - [*]
BULPIBEGbeginnings of a module for the text editor - [*]
OTIBCAUJlove2d scaffold - [*]
LS55YKGWswitch copy/paste to ctrl- hotkeys
Change contents
- edit in text.lua at line 147
--? print(Screen_top1.line, Screen_top1.pos, Cursor1.line, Cursor1.pos, Screen_bottom1.line, Screen_bottom1.pos) - edit in text.lua at line 149
if Cursor_y >= App.screen.height - Line_height thenText.populate_screen_line_starting_pos(Cursor1.line)Text.snap_cursor_to_bottom_of_screen()--? print('=>', Screen_top1.line, Screen_top1.pos, Cursor1.line, Cursor1.pos, Screen_bottom1.line, Screen_bottom1.pos)end - edit in text.lua at line 158
--? print(Screen_top1.line, Screen_top1.pos, Cursor1.line, Cursor1.pos, Screen_bottom1.line, Screen_bottom1.pos) - edit in text.lua at line 172[5.763]→[2.1149:1203](∅→∅),[2.1203]→[5.1584:1684](∅→∅),[5.1584]→[5.1584:1684](∅→∅),[5.1684]→[5.409:532](∅→∅),[5.532]→[5.1684:1690](∅→∅),[5.1684]→[5.1684:1690](∅→∅)
if Cursor_y >= App.screen.height - Line_height thenText.populate_screen_line_starting_pos(Cursor1.line)Text.snap_cursor_to_bottom_of_screen()--? print('=>', Screen_top1.line, Screen_top1.pos, Cursor1.line, Cursor1.pos, Screen_bottom1.line, Screen_bottom1.pos)end - edit in text.lua at line 189
--? print(Screen_top1.line, Screen_top1.pos, Cursor1.line, Cursor1.pos, Screen_bottom1.line, Screen_bottom1.pos) - edit in text.lua at line 191
if Cursor_y >= App.screen.height - Line_height thenText.populate_screen_line_starting_pos(Cursor1.line)Text.snap_cursor_to_bottom_of_screen()--? print('=>', Screen_top1.line, Screen_top1.pos, Cursor1.line, Cursor1.pos, Screen_bottom1.line, Screen_bottom1.pos)end - edit in main.lua at line 428[17.802][3.8]
--? print(Screen_top1.line, Screen_top1.pos, Cursor1.line, Cursor1.pos, Screen_bottom1.line, Screen_bottom1.pos) - edit in main.lua at line 430[3.41][17.849]
if Cursor_y >= App.screen.height - Line_height thenText.populate_screen_line_starting_pos(Cursor1.line)Text.snap_cursor_to_bottom_of_screen()--? print('=>', Screen_top1.line, Screen_top1.pos, Cursor1.line, Cursor1.pos, Screen_bottom1.line, Screen_bottom1.pos)end