remove some duplication
[?]
Aug 14, 2022, 3:10 PM
5STHSG4UB2SC4EZWOQHPQM43BLC4X2EJTNSSYRF35XEYVMTOID5ACDependencies
- [2]
ERQKFTPVextract method - [3]
PYLBFWWEoverzealous search-and-replace - [4]
OTIBCAUJlove2d scaffold - [5]
ILOA5BYFseparate data structure for each line's cache data - [6]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [7]
AVQ5MC5Dfinish uppercasing all globals - [8]
YGCT2D2Ostart loading settings as applicable - [9]
MGOQ5XAVstart uppercasing globals - [10]
2L5MEZV3experiment: new edit namespace - [11]
LNUHQOGHstart passing in Editor_state explicitly - [12]
O6T3TPXDbugfix: position cursor up top when loading file - [13]
5T2E3PDVcouple of bugfixes to file-handling - [14]
Z4KNS42Nto open a file without a terminal, drag it on! - [15]
PWHZPJJMalways show current filename in window title - [16]
LF7BWEG4group all editor globals - [17]
SPNMXTYRhave file API operate on state object - [18]
2RXZ3PGObeginning of a new approach to scroll+wrap
Change contents
- replacement in main.lua at line 50
edit.fixup_cursor(Editor_state)if Editor_state.cursor1.line > #Editor_state.lines or Editor_state.lines[Editor_state.cursor1.line].mode ~= 'text' thenedit.fixup_cursor(Editor_state)end - replacement in main.lua at line 130[4.16]→[4.86726:86772](∅→∅),[4.211]→[4.500:532](∅→∅),[4.86772]→[4.500:532](∅→∅),[4.500]→[4.500:532](∅→∅),[4.532]→[4.86773:86809](∅→∅),[4.9246]→[4.16:28](∅→∅),[4.86809]→[4.16:28](∅→∅),[4.802]→[4.16:28](∅→∅),[4.28]→[4.554:568](∅→∅),[4.802]→[4.554:568](∅→∅),[4.554]→[4.554:568](∅→∅)
for i,line in ipairs(Editor_state.lines) doif line.mode == 'text' thenEditor_state.cursor1.line = ibreakendendedit.fixup_cursor(Editor_state) - replacement in edit.lua at line 122
if State.cursor1.line > #State.lines or State.lines[State.cursor1.line].mode ~= 'text' thenfor i,line in ipairs(State.lines) doif line.mode == 'text' thenState.cursor1.line = ibreakendfor i,line in ipairs(State.lines) doif line.mode == 'text' thenState.cursor1.line = ibreak