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