streamline the interface for Text.draw
[?]
Apr 3, 2023, 12:19 AM
4GYPLUDYEF4NPB3HUGSOXAMCZ3UEV5ODM35IRA4DYL5IPDVDHD3QCDependencies
- [2]
I64IPGJXavoid saving fragments in lines - [3]
B3IWYWSRdelete another arg that can be deduced - [4]
XNFTJHC4split keyboard handling between Text and Drawing - [5]
EWMPYCDObugfix - [6]
4VKEE43Zbugfix - [7]
73OCE2MCafter much struggle, a brute-force undo - [8]
LF7BWEG4group all editor globals - [9]
3ZSUBI57drop some redundant args from Text.draw - [10]
Z4XRNDTRfind text - [11]
2RXZ3PGObeginning of a new approach to scroll+wrap - [12]
CVGE3SIGI feel confident now that page-down is working. - [13]
3TFEAQSWstart using some globals - [14]
2L5MEZV3experiment: new edit namespace - [15]
BW2IUB3Kkeep all text cache writes inside text.lua - [16]
Y36LOGR5bugfix: show cursor when past end of line - [17]
X3F7ECSLadd state arg to some functions - [18]
KURLAXXIclean up some prints - [19]
LNUHQOGHstart passing in Editor_state explicitly - [20]
H2DPLWMVsnapshot: wrapping long lines at word boundaries - [21]
WJBZZQE4fold together two largely similar cases - [22]
BULPIBEGbeginnings of a module for the text editor
Change contents
- replacement in text.lua at line 5
-- return the final y, and position of start of final screen line drawn-- return y for the next line, and position of start of final screen line drawn - replacement in text.lua at line 53
return y - State.line_height, final_screen_line_starting_posreturn y, final_screen_line_starting_pos - edit in edit.lua at line 186
y = y + State.line_height