Merge lines.love

[?]
Sep 11, 2022, 3:36 PM
C3NYQP57XGSNOG2R6MT2OIJWHVFW53VUTHOW7RVYP66OEBE6GVBQC

Dependencies

  • [2] DGCSQ3UZ Merge lines.love
  • [3] P3K7UH5C Merge lines.love
  • [4] NFI42KGX more correct absolute path detection
  • [5] TFM6F5OD Merge lines.love
  • [6] 32V6ZHQB Merge lines.love
  • [7] OTIBCAUJ love2d scaffold
  • [8] X3CQLBTR set window title within each app
  • [9] QYIFOHW3 first test!
  • [10] AKZWDWIA Merge lines.love
  • [11] R5QXEHUI somebody stop me
  • [12] LXTTOB33 extract a couple of files
  • [13] VXORMHME delete experimental REPL
  • [14] AVTNUQYR basic test-enabled framework
  • [15] 4YDBYBA4 clean up memory leak experiments
  • [16] K2X6G75Z start writing some tests for drawings
  • [17] CE4LZV4T drop last couple of manual tests
  • [18] 2L5MEZV3 experiment: new edit namespace
  • [19] 73OCE2MC after much struggle, a brute-force undo
  • [20] KKMFQDR4 editing source code from within the app
  • [21] 3PSFWAIL Merge lines.love
  • [22] OI4FPFIN support drawings in the source editor
  • [23] VHUNJHXB Merge lines.love
  • [24] 3QNOKBFM beginnings of a test harness
  • [25] 66X36NZN a little more prose describing manual_tests
  • [26] T4FRZSYL delete an ancient, unused file
  • [27] GUOQRUL7 Merge lines.love
  • [28] RSZD5A7G forgot to add json.lua
  • [29] D2GCFTTT clean up repl functionality
  • [30] VHQCNMAR several more modules
  • [31] DCO5BQWV Merge lines.love
  • [32] TLOAPLBJ add a license
  • [33] XX7G2FFJ intermingle freehand line drawings with text
  • [34] YTSPVDZH first successful pagedown test, first bug found by test
  • [35] BLWAYPKV extract a module
  • [36] BJ5X5O4A let's prevent the text cursor from ever getting on a drawing
  • [37] BULPIBEG beginnings of a module for the text editor
  • [38] 2CTN2IEF Merge lines.love
  • [39] D4B52CQ2 Merge lines.love
  • [40] MD3W5IRA new fork: rip out drawing support
  • [41] FS2ITYYH record a known issue
  • [42] OGUV4HSA remove some memory leaks from rendered fragments
  • [43] JOPVPUSA editing source code from within the app
  • [44] ZJOSQFN6 bugfix: path munging on Windows
  • [45] TVCPXAAU rename
  • [46] 6LJZN727 handle chords
  • [47] CQYKYJJU remember window positions across restart/ctrl+e
  • [48] KMSL74GA support selections in the source editor

Change contents

  • file deletion: source_file.lua (----------)source_file.lua (----------)
    [5.2][5.152399:152438](),[5.2][5.152399:152438](),[5.152438][5.150241:150241]()
    function is_absolute_path(path)
    local os_path_separator = package.config:sub(1,1)
    if os_path_separator == '/' then
    -- POSIX systems permit backslashes in filenames
    return path:sub(1,1) == '/'
    elseif os_path_separator == '\\' then
    local f = path:sub(1,1)
    return f == '/' or f == '\\'
    else
    error('What OS is this? LÖVE reports that the path separator is "'..os_path_separator..'"')
    end
    end
    function is_relative_path(path)
    return not is_absolute_path(path)
    end
  • file deletion: source.lua (----------)source.lua (----------)
    [5.2][5.177652:177686](),[5.2][5.177652:177686](),[5.177686][5.165766:165766]()
    if is_relative_path(filename) then
    filename = love.filesystem.getWorkingDirectory()..'/'..filename -- '/' should work even on Windows
    end
    --? print('saving source settings', Settings.source.x, Settings.source.y, Settings.source.displayindex)
    return {
    x=Settings.source.x, y=Settings.source.y, displayindex=Settings.source.displayindex,
    width=App.screen.width, height=App.screen.height,
    font_height=Editor_state.font_height,
    filename=filename,
    screen_top=Editor_state.screen_top1, cursor=Editor_state.cursor1,
    show_log_browser_side=Show_log_browser_side,
    focus=Focus,
    }
    end
    function source.mouse_pressed(x,y, mouse_button)
    Cursor_time = 0 -- ensure cursor is visible immediately after it moves
    --? print('mouse click', x, y)
    --? print(Editor_state.left, Editor_state.right)
    --? print(Log_browser_state.left, Log_browser_state.right)
  • file deletion: run.lua (----------)run.lua (----------)
    [5.2][5.184046:184077](),[5.2][5.184046:184077](),[5.184077][5.178044:178044]()
    if is_relative_path(filename) then
    filename = love.filesystem.getWorkingDirectory()..'/'..filename -- '/' should work even on Windows
    end
    return {
  • edit in source_file.lua at line 202
    [5.16388]
    function is_absolute_path(path)
    local os_path_separator = package.config:sub(1,1)
    if os_path_separator == '/' then
    -- POSIX systems permit backslashes in filenames
    return path:sub(1,1) == '/'
    elseif os_path_separator == '\\' then
    local f = path:sub(1,1)
    return f == '/' or f == '\\'
    else
    error('What OS is this? LÖVE reports that the path separator is "'..os_path_separator..'"')
    end
    end
    function is_relative_path(path)
    return not is_absolute_path(path)
    end
  • replacement in source.lua at line 260
    [5.174018][3.114:297]()
    local os_path_separator = package.config:sub(1,1)
    if filename:sub(1,1) ~= os_path_separator then
    filename = love.filesystem.getWorkingDirectory()..os_path_separator..filename
    [5.174018]
    [5.174157]
    if is_relative_path(filename) then
    filename = love.filesystem.getWorkingDirectory()..'/'..filename -- '/' should work even on Windows
  • replacement in run.lua at line 139
    [5.182432][3.302:485]()
    local os_path_separator = package.config:sub(1,1)
    if filename:sub(1,1) ~= os_path_separator then
    filename = love.filesystem.getWorkingDirectory()..os_path_separator..filename
    [5.182432]
    [5.182571]
    if is_relative_path(filename) then
    filename = love.filesystem.getWorkingDirectory()..'/'..filename -- '/' should work even on Windows
  • edit in file.lua at line 61
    [5.18211][2.22:22]()