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