standardize scroll check in a few places
[?]
Aug 17, 2022, 4:40 PM
AYS3Z3TXOXF5ZJDLSBWEUIOWXJEZXLXEBZS5ZRJC2IRDVM7KTSTACDependencies
- [2]
ODLKHO7Bswitch to line index in a function - [3]
2ZYV7D3Whandle tab characters - [4]
G6OYAYHUpaste in text with M-v - [5]
3MAZEQK5add state arg to Text.textinput - [6]
SQLVYKVJrename - [7]
3TDOZESEextract scrolling logic out of insert_return - [8]
XNFTJHC4split keyboard handling between Text and Drawing - [9]
BYG5CEMVsupport for naming points - [10]
PFT5Y2ZYmove - [11]
IRCKL6VNextract scrolling logic out of insert_at_cursor - [12]
GN3IF4WFbugfix: pasting newlines - [13]
73OCE2MCafter much struggle, a brute-force undo - [14]
DRFE3B3Zmouse buttons are integers, not strings - [15]
SPSW74Y5add state arg to Text.keychord_pressed - [16]
5UG5PQ6Kundo commit 861c57b533 - [17]
VJ77YABHmore efficient undo/redo - [18]
Z5HLXU4Padd state arg to a few functions - [19]
QCPXQ2E3add state arg to a few functions - [20]
UHB4GARJleft/right margin -> left/right coordinates - [21]
PX7DDEMOautosave slightly less aggressively - [22]
LF7BWEG4group all editor globals - [*]
BULPIBEGbeginnings of a module for the text editor
Change contents
- replacement in text.lua at line 159
if State.cursor_y >= App.screen.height - State.line_height thenif State.cursor_y > App.screen.height - State.line_height then - replacement in text.lua at line 183
if (State.cursor_y + State.line_height) > App.screen.height thenif State.cursor_y > App.screen.height - State.line_height then - replacement in text.lua at line 192
if State.cursor_y >= App.screen.height - State.line_height thenif State.cursor_y > App.screen.height - State.line_height then