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