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