Merge text.love

[?]
Jun 8, 2023, 8:18 AM
PCEXCSOW5QISRSCMUIYJCYBFEG7WSJJ6OPSMTWKH455UV76KMUQAC

Dependencies

Change contents

  • file deletion: run.lua (----------)run.lua (----------)
    [5.2][5.183867:183898](),[5.2][5.183867:183898](),[5.183898][5.178107:178107]()
    function absolutize(path)
    if is_relative_path(path) then
    return love.filesystem.getWorkingDirectory()..'/'..path -- '/' should work even on Windows
    end
    return path
    end
    function run.mouse_press(x,y, mouse_button)
    filename=absolutize(Editor_state.filename),
    screen_top=Editor_state.screen_top1, cursor=Editor_state.cursor1
    }
    end
    if #arg > 0 and Editor_state.filename ~= absolutize(arg[1]) then
    Editor_state.filename = arg[1]
    load_from_disk(Editor_state)
    Text.redraw_all(Editor_state)
    Editor_state.screen_top1 = {line=1, pos=1}
    Editor_state.cursor1 = {line=1, pos=1}
    else
    load_from_disk(Editor_state)
    Text.redraw_all(Editor_state)
    end
  • edit in Manual_tests.md at line 7
    [5.8756][2.19:127](),[5.151][5.804:1112](),[5.151][5.804:1112]()
    - from previous session
    - Filename as absolute path
    - Filename as relative path
    - from defaults
    - run with a filename on commandline, scroll around, quit; restart without a filename; window opens running the text editor in same position+dimensions
    - run with a filename on commandline, scroll around, quit; restart with same filename; window opens running the text editor in same position+dimensions
  • resurrect zombie in Manual_tests.md at line 7
    [5.1112][5.1112:1245](),[5.1112][5.1112:1245]()
    - run with a filename on commandline, scroll around, quit; restart with new filename; window opens new filename with cursor up top
  • edit in Manual_tests.md at line 7
    [5.8756]
    [5.1112]
    - delete app settings, start with a filename; window opens with cursor at top of file
    - run with absolute file path; quit; restart; window opens in same position+dimensions
    - run with relative file path; quit; switch to new directory; restart without a filename; window opens running the same file in same position+dimensions
    - run with a filename on commandline, scroll around, quit; restart without a filename; window opens in same position+dimensions
    - run with a filename on commandline, scroll around, quit; restart with same filename; window opens in same position+dimensions
  • replacement in Manual_tests.md at line 13
    [5.1245][5.1245:1407](),[5.1245][5.1245:1407]()
    - run editor, scroll around, move cursor to end of some line, quit; restart with new filename; window opens running the text editor in same position+dimensions
    [5.1245]
    [5.158]
    - run editor, scroll around, move cursor to end of some line, quit; restart with new filename; window opens in same position+dimensions