Merge lines.love
[?]
Jun 8, 2023, 8:08 AM
NPXYCSEAHZBZN5GY6EGMO5VDJQVHUXJHRSOZPX7YU6HHJHP74UNQCDependencies
- [2]
7J5CU2N4Merge lines.love - [3]
FTB4YNQUMerge lines.love - [4]
Z5WOBP27Merge lines.love - [5]
SW7BSBMJseveral bugfixes in saving/loading cursor position - [6]
LF7BWEG4group all editor globals - [7]
OGD5RAQKbugfix: naming points in drawings - [8]
5RDWSYK2consistently use App names for methods everywhere - [9]
AF253GHLbugfix - [10]
7VGDIPLCmore robust state validation - [11]
QQBP3G6Wreturn height of editor widget after drawing - [12]
CQYKYJJUremember window positions across restart/ctrl+e - [13]
57OGXVHZMerge lines.love - [14]
APYPFFS3call edit rather than App callbacks in tests - [15]
LNUHQOGHstart passing in Editor_state explicitly - [16]
2SAJWSNKautomatically insert timestamp every time - [17]
VN3MTXFKMerge lines.love - [18]
QZ2SXLHFsome debug prints - [19]
HHYXYWAFbugfix: write to file 'recent' - [20]
2L5MEZV3experiment: new edit namespace - [21]
KKMFQDR4editing source code from within the app - [22]
T4C5HT2Osupport a commandline arg just like in pensieve.love
Change contents
- edit in run.lua at line 39
if #arg > 0 and Editor_state.filename ~= absolutize(arg[1]) then - resolve order conflict in run.lua at line 39
- resurrect zombie in run.lua at line 129
end - edit in run.lua at line 134
filename=absolutize(Editor_state.filename), - edit in edit.lua at line 109
or edit.invalid_cursor1(State) - replacement in edit.lua at line 114
or edit.invalid1(State, State.cursor1)or edit.invalid_cursor1(State) - edit in edit.lua at line 127
end-- cursor loc in particular differs from other locs in one way:-- pos might occur just after end of linefunction edit.invalid_cursor1(State)local cursor1 = State.cursor1if cursor1.line > #State.lines then return true endlocal l = State.lines[cursor1.line]if l.mode ~= 'text' then return false end -- pos is irrelevant to validity for a drawing linereturn cursor1.pos > #State.lines[cursor1.line].data + 1 - edit in edit.lua at line 607
end - resurrect zombie in edit.lua at line 607
end - resolve order conflict in edit.lua at line 607
- edit in edit.lua at line 608
-- cursor loc in particular differs from other locs in one way:-- pos might occur just after end of linefunction edit.invalid_cursor1(State)local cursor1 = State.cursor1if cursor1.line > #State.lines then return true endlocal l = State.lines[cursor1.line]if l.mode ~= 'text' then return false end -- pos is irrelevant to validity for a drawing linereturn cursor1.pos > #State.lines[cursor1.line].data + 1