extract scrolling logic out of insert_return
[?]
Jun 10, 2022, 6:21 PM
3TDOZESEOYHGF6LYKR6PYSPNFI3QUGED2BKM5LUDEKJKRIX3ACEACDependencies
- [2]
BTKAW76Lrename - [3]
DHI6IJCNselecting text and deleting selections - [4]
GN3IF4WFbugfix: pasting newlines - [5]
AMSESRTHmove some code - [6]
HOSPP2ANcrisp font rendering - [7]
KOYAJWE4extract a couple more methods - [8]
JJ7J4PUBsome unnecessary mutations - [*]
BULPIBEGbeginnings of a module for the text editor - [*]
2ZYV7D3Whandle tab characters - [*]
OTIBCAUJlove2d scaffold - [*]
LS55YKGWswitch copy/paste to ctrl- hotkeys
Change contents
- edit in text.lua at line 182
if (Cursor_y + Line_height) > App.screen.height thenText.snap_cursor_to_bottom_of_screen()end - edit in text.lua at line 378
local scroll_down = (Cursor_y + Line_height) > App.screen.height - edit in text.lua at line 382[3.652]→[3.652:674](∅→∅),[3.674]→[2.3:46](∅→∅),[2.46]→[3.40:46](∅→∅),[3.754]→[3.40:46](∅→∅),[3.40]→[3.40:46](∅→∅)
if scroll_down thenText.snap_cursor_to_bottom_of_screen()end - edit in main.lua at line 423[13.753][13.753]
if (Cursor_y + Line_height) > App.screen.height thenText.snap_cursor_to_bottom_of_screen()end