simplify cursor-on-screen check
[?]
Aug 17, 2022, 4:36 PM
ELJNEPW26FUIIFY6D24274J7KZICRLE3TJHCFNRVLR5NZBNNV37ACDependencies
- [2]
5BMR5HRTclick to the left of a line - [3]
HTWAM4NZbugfix: scrolling in left/right movements - [4]
F65ADDGLadd state arg to a few functions - [5]
ILOA5BYFseparate data structure for each line's cache data - [6]
NHNP76LGswap return values - [7]
2TQR4PSYadd args to some functions - [8]
YJJ4X4JGbugfix: avoid scrolling on 'end' - [9]
2L5MEZV3experiment: new edit namespace - [10]
62PZGSUCoptimization: moving cursor to next word - [11]
MXA3RZYKdeduce left/right from state where possible - [12]
LNUHQOGHstart passing in Editor_state explicitly - [13]
WJBZZQE4fold together two largely similar cases - [14]
ZPUQSPQPextract a few methods - [15]
LF7BWEG4group all editor globals - [16]
WLJCIXYMadd state arg to a few functions - [17]
TGHAJBESuse line cache for drawings as well - [18]
UHB4GARJleft/right margin -> left/right coordinates - [19]
Z5HLXU4Padd state arg to a few functions - [20]
QCPXQ2E3add state arg to a few functions - [21]
KECEMMMRextract couple of functions - [22]
WOXIYUTLbugfix: manage screen_top and cursor when resizing - [23]
QCQTMUZ7add args to some functions - [*]
BULPIBEGbeginnings of a module for the text editor
Change contents
- replacement in text.lua at line 531
if Text.cursor_past_screen_bottom(State) thenif Text.cursor_out_of_screen(State) then - replacement in text.lua at line 580
if Text.cursor_past_screen_bottom(State) thenif Text.cursor_out_of_screen(State) then - replacement in text.lua at line 618
if Text.cursor_past_screen_bottom(State) thenif Text.cursor_out_of_screen(State) then - replacement in text.lua at line 971
if Text.cursor_past_screen_bottom(State) thenif Text.cursor_out_of_screen(State) then - replacement in text.lua at line 982
function Text.cursor_past_screen_bottom(State)function Text.cursor_out_of_screen(State) - replacement in text.lua at line 984
return State.cursor_y >= App.screen.height - State.line_heightreturn State.cursor_y == nil - replacement in edit.lua at line 137
State.cursor_y = -1State.cursor_x = nilState.cursor_y = nil - edit in edit.lua at line 179
endif State.cursor_y == -1 thenState.cursor_y = App.screen.height - replacement in edit.lua at line 409
if Text.cursor_past_screen_bottom(State) thenif Text.cursor_out_of_screen(State) then