Merge lines.love

[?]
Jun 8, 2023, 8:08 AM
NPXYCSEAHZBZN5GY6EGMO5VDJQVHUXJHRSOZPX7YU6HHJHP74UNQC

Dependencies

  • [2] 7J5CU2N4 Merge lines.love
  • [3] FTB4YNQU Merge lines.love
  • [4] Z5WOBP27 Merge lines.love
  • [5] SW7BSBMJ several bugfixes in saving/loading cursor position
  • [6] LF7BWEG4 group all editor globals
  • [7] OGD5RAQK bugfix: naming points in drawings
  • [8] 5RDWSYK2 consistently use App names for methods everywhere
  • [9] AF253GHL bugfix
  • [10] 7VGDIPLC more robust state validation
  • [11] QQBP3G6W return height of editor widget after drawing
  • [12] CQYKYJJU remember window positions across restart/ctrl+e
  • [13] 57OGXVHZ Merge lines.love
  • [14] APYPFFS3 call edit rather than App callbacks in tests
  • [15] LNUHQOGH start passing in Editor_state explicitly
  • [16] 2SAJWSNK automatically insert timestamp every time
  • [17] VN3MTXFK Merge lines.love
  • [18] QZ2SXLHF some debug prints
  • [19] HHYXYWAF bugfix: write to file 'recent'
  • [20] 2L5MEZV3 experiment: new edit namespace
  • [21] KKMFQDR4 editing source code from within the app
  • [22] T4C5HT2O support a commandline arg just like in pensieve.love

Change contents

  • edit in run.lua at line 39
    [3.116][6.17:17](),[6.303][6.17:17](),[6.178636][5.17:84](),[6.178636][5.17:84]()
    if #arg > 0 and Editor_state.filename ~= absolutize(arg[1]) then
  • resolve order conflict in run.lua at line 39
    [3.116]
    [6.179196]
  • resurrect zombie in run.lua at line 129
    [6.653][6.198:204](),[6.198][6.198:204](),[6.653][6.198:204](),[6.198][6.198:204]()
    end
  • edit in run.lua at line 134
    [6.182904][5.85:133](),[6.182904][5.85:133]()
    filename=absolutize(Editor_state.filename),
  • edit in edit.lua at line 109
    [6.286][5.326:363](),[6.286][5.326:363]()
    or edit.invalid_cursor1(State)
  • replacement in edit.lua at line 114
    [4.220][4.220:265]()
    or edit.invalid1(State, State.cursor1)
    [4.220]
    [4.265]
    or edit.invalid_cursor1(State)
  • edit in edit.lua at line 127
    [6.258]
    [4.500]
    end
    -- cursor loc in particular differs from other locs in one way:
    -- pos might occur just after end of line
    function edit.invalid_cursor1(State)
    local cursor1 = State.cursor1
    if cursor1.line > #State.lines then return true end
    local l = State.lines[cursor1.line]
    if l.mode ~= 'text' then return false end -- pos is irrelevant to validity for a drawing line
    return cursor1.pos > #State.lines[cursor1.line].data + 1
  • edit in edit.lua at line 607
    [6.7283][6.7283:7287]()
    end
  • resurrect zombie in edit.lua at line 607
    [6.258][5.364:368](),[6.258][5.364:368]()
    end
  • resolve order conflict in edit.lua at line 607
    [6.7283]
    [5.364]
  • edit in edit.lua at line 608
    [5.368][5.368:792](),[5.368][5.368:792]()
    -- cursor loc in particular differs from other locs in one way:
    -- pos might occur just after end of line
    function edit.invalid_cursor1(State)
    local cursor1 = State.cursor1
    if cursor1.line > #State.lines then return true end
    local l = State.lines[cursor1.line]
    if l.mode ~= 'text' then return false end -- pos is irrelevant to validity for a drawing line
    return cursor1.pos > #State.lines[cursor1.line].data + 1