Merge text.love

[?]
Sep 17, 2023, 4:29 PM
OTYGZVPWJTIIVUFLAIUTXN2CWXETICB6PLUYWXVZNXS3WYH4UAZQC

Dependencies

Change contents

  • file deletion: source_edit.lua (----------)source_edit.lua (----------)
    [4.2][4.165788:165827](),[4.2][4.165788:165827](),[4.165827][4.152503:152503]()
    if State.cursor1.line >= #State.lines then
    break
    end
    if State.lines[State.cursor1.line].mode == 'text' then
    break
    end
    State.cursor1.line = State.cursor1.line+1
    State.cursor1.pos = 1
    end
    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
    end
    function edit.cursor_on_text(State)
    return State.cursor1.line <= #State.lines
    and State.lines[State.cursor1.line].mode == 'text'
    end
    State.cursor1 = {line=1, pos=1}
    edit.put_cursor_on_next_text_line(State)
    or edit.invalid_cursor1(State)
    or not edit.cursor_on_text(State)
    or not Text.le1(State.screen_top1, State.cursor1) then
    State.screen_top1 = {line=1, pos=1}
  • edit in edit.lua at line 84
    [4.472][4.919:955](),[4.472][4.919:955]()
    State.cursor1 = {line=1, pos=1}
  • resurrect zombie in edit.lua at line 85
    [4.390][4.518:565](),[4.955][4.518:565](),[4.955][4.518:565](),[4.1348][4.518:565](),[4.518][4.518:565](),[4.518][4.518:565](),[4.955][4.518:565]()
    end
    end
    function edit.invalid1(State, loc1)