drop some redundant args from Text.draw
[?]
Jul 17, 2022, 2:58 PM
3ZSUBI574IYW3BKS6OFPDD6UY2IJBNOQIGA4YFGQSF4VZ3PPATYQCDependencies
- [2]
MXA3RZYKdeduce left/right from state where possible - [3]
4VKEE43Zbugfix - [4]
GK47BBCYstart passing left/right margins everywhere - [5]
LF7BWEG4group all editor globals - [6]
LNUHQOGHstart passing in Editor_state explicitly - [7]
CVGE3SIGI feel confident now that page-down is working. - [8]
3TFEAQSWstart using some globals - [9]
UHB4GARJleft/right margin -> left/right coordinates - [10]
2L5MEZV3experiment: new edit namespace - [11]
H2DPLWMVsnapshot: wrapping long lines at word boundaries - [12]
M6TH7VSZrip out notion of Line_width - [13]
X3F7ECSLadd state arg to some functions - [14]
CNCYMM6Amake test initializations a little more obvious - [*]
BULPIBEGbeginnings of a module for the text editor - [*]
4KC7I3E2make colors easier to edit
Change contents
- replacement in text.lua at line 12
function Text.draw(State, line, line_index, top)function Text.draw(State, line_index) - edit in text.lua at line 15[17.27][3.1747]
local line = State.lines[line_index] - replacement in text.lua at line 18
local y = toplocal y = line.starty - edit in edit.lua at line 41
-- startpos, the index of data the line starts rendering from (if currently on screen), can only be >1 for topmost line on screen-- starty, the y coord in pixels - edit in edit.lua at line 42
-- startpos, the index of data the line starts rendering from (if currently on screen), can only be >1 for topmost line on screen-- starty, the y coord in pixels - replacement in edit.lua at line 166
y, State.screen_bottom1.pos = Text.draw(State, line, line_index, line.starty)y, State.screen_bottom1.pos = Text.draw(State, line_index)