Merge lines.love

[?]
May 14, 2023, 12:29 AM
RAXUQQ6ZTTH4WCEDDLVXJSZ4E2W6NBEGTANCBDK57YO6ASCEI2CQC

Dependencies

  • [2] KWIVKQQ7 Merge lines.love
  • [3] 2H76FV5S bugfix: searching files containing unicode
  • [4] 4YDBYBA4 clean up memory leak experiments
  • [5] EETIR4GX bugfix: skip over drawings when searching
  • [6] 2L5MEZV3 experiment: new edit namespace
  • [7] AVTNUQYR basic test-enabled framework
  • [8] JOPVPUSA editing source code from within the app
  • [9] 4SR3Z4Y3 document the version of LÖVE I've been using
  • [10] 2JBAEQHU Merge lines.love
  • [11] VHQCNMAR several more modules
  • [12] BLWAYPKV extract a module
  • [13] KMSL74GA support selections in the source editor
  • [14] 2CK5QI7W make love event names consistent
  • [15] 2CTN2IEF Merge lines.love
  • [16] VXORMHME delete experimental REPL
  • [17] TLOAPLBJ add a license
  • [18] XX7G2FFJ intermingle freehand line drawings with text
  • [19] ORKN6EOB Merge lines.love
  • [20] LXTTOB33 extract a couple of files
  • [21] ZTZOO2OQ Merge lines.love
  • [22] ZLJYLPOT Merge lines.love
  • [23] TVCPXAAU rename
  • [24] 3PSFWAIL Merge lines.love
  • [25] VP5KC4XZ Merge lines.love
  • [26] CE4LZV4T drop last couple of manual tests
  • [27] K2X6G75Z start writing some tests for drawings
  • [28] FS2ITYYH record a known issue
  • [29] ORRSP7FV deduce test names on failures
  • [30] D2GCFTTT clean up repl functionality
  • [31] T4FRZSYL delete an ancient, unused file
  • [32] FZBXBUFF bugfix: search
  • [33] K74U4BAU Merge lines.love
  • [34] N2NUGNN4 include a brief reference enabling many useful apps
  • [35] 6LJZN727 handle chords
  • [36] MD3W5IRA new fork: rip out drawing support
  • [37] BULPIBEG beginnings of a module for the text editor
  • [38] BJ5X5O4A let's prevent the text cursor from ever getting on a drawing
  • [39] 73OCE2MC after much struggle, a brute-force undo
  • [40] OGUV4HSA remove some memory leaks from rendered fragments
  • [41] VHUNJHXB Merge lines.love
  • [42] A4BSGS2C Merge lines.love
  • [43] 3QNOKBFM beginnings of a test harness
  • [44] RSZD5A7G forgot to add json.lua
  • [45] KKMFQDR4 editing source code from within the app
  • [46] R5QXEHUI somebody stop me
  • [47] OI4FPFIN support drawings in the source editor
  • [48] KB7KTSCP Merge lines.love
  • [49] OTIBCAUJ love2d scaffold
  • [50] 66X36NZN a little more prose describing manual_tests
  • [51] JZR3QMTN Merge lines.love

Change contents

  • file deletion: source_text_tests.lua (----------)source_text_tests.lua (----------)
    [4.2][4.83676:83721](),[4.2][4.83676:83721](),[4.83721][4.3498:3498]()
    check_eq(Editor_state.cursor1.pos, 6, '1/cursor:pos')
    end
    Editor_state.lines = load_array{'abc ’abd'} -- contains unicode quote
    Text.redraw_all(Editor_state)
    Editor_state.cursor1 = {line=1, pos=1}
    Editor_state.screen_top1 = {line=1, pos=1}
    Editor_state.screen_bottom1 = {}
    edit.draw(Editor_state)
    -- search upwards for a string
    edit.run_after_keychord(Editor_state, 'C-f')
    check_eq(Editor_state.cursor1.pos, 2, '1/cursor:pos')
    end
    function test_search_wrap_upwards()
    Editor_state.cursor1 = {line=2, pos=1}
    Editor_state.screen_top1 = {line=1, pos=1}
    Editor_state.screen_bottom1 = {}
    edit.draw(Editor_state)
    -- search for a string
    edit.run_after_keychord(Editor_state, 'C-f')
    Editor_state.lines = load_array{'’abc', 'def'} -- contains unicode quote in first line
    Text.redraw_all(Editor_state)
    check_eq(Editor_state.cursor1.pos, 2, '2/cursor:pos')
    end
    function test_search_wrap()
    Editor_state.cursor1 = {line=2, pos=1}
    Editor_state.screen_top1 = {line=1, pos=1}
    Editor_state.screen_bottom1 = {}
    edit.draw(Editor_state)
    -- search for a string
    edit.run_after_keychord(Editor_state, 'C-f')
    Editor_state.lines = load_array{'’abc', 'abd'} -- contains unicode quote
    Text.redraw_all(Editor_state)
    check_eq(Editor_state.cursor1.pos, 2, '2/cursor:pos')
    end
    function test_search_upwards()
    Editor_state.lines = load_array{'```lines', '```', 'def', 'ghi', '’deg'} -- contains unicode quote in final line
    Text.redraw_all(Editor_state)
    Editor_state.cursor1 = {line=1, pos=1}
    Editor_state.screen_top1 = {line=1, pos=1}
    Editor_state.screen_bottom1 = {}
    edit.draw(Editor_state)
    -- search for a string
    edit.run_after_keychord(Editor_state, 'C-f')
  • replacement in text_tests.lua at line 1861
    [4.140][4.1618:1680](),[4.140][3.2:120]()
    Editor_state.lines = load_array{'abc', 'def', 'ghi', 'deg'}
    Editor_state.lines = load_array{'```lines', '```', 'def', 'ghi', '’deg'} -- contains unicode quote in final line
    [4.140]
    [4.202]
    Editor_state.lines = load_array{'abc', 'def', 'ghi', '’deg'} -- contains unicode quote in final line
  • replacement in source_text_tests.lua at line 1958
    [4.80491][4.3807:3881]()
    Editor_state.lines = load_array{'```lines', '```', 'def', 'ghi', 'deg'}
    [4.80491]
    [4.80553]
    Editor_state.lines = load_array{'```lines', '```', 'def', 'ghi', '’deg'} -- contains unicode quote in final line
  • replacement in source_text_tests.lua at line 1979
    [4.22380][4.22380:22436]()
    check_eq(Editor_state.cursor1.pos, 1, '2/cursor:pos')
    [4.22380]
    [4.81522]
    check_eq(Editor_state.cursor1.pos, 2, '2/cursor:pos')
  • replacement in source_text_tests.lua at line 1985
    [4.81680][4.81680:81725]()
    Editor_state.lines = load_array{'abc abd'}
    [4.81680]
    [4.81725]
    Editor_state.lines = load_array{'’abc', 'abd'} -- contains unicode quote
  • replacement in source_text_tests.lua at line 1987
    [4.81757][4.81757:81798]()
    Editor_state.cursor1 = {line=1, pos=2}
    [4.81757]
    [4.81798]
    Editor_state.cursor1 = {line=2, pos=1}
  • replacement in source_text_tests.lua at line 1997
    [4.22495][4.22495:22551]()
    check_eq(Editor_state.cursor1.pos, 1, '2/cursor:pos')
    [4.22495]
    [4.82266]
    check_eq(Editor_state.cursor1.pos, 2, '2/cursor:pos')
  • replacement in source_text_tests.lua at line 2003
    [4.82418][4.82418:82459]()
    Editor_state.lines = load_array{'abc'}
    [4.82418]
    [4.82459]
    Editor_state.lines = load_array{'’abc', 'def'} -- contains unicode quote in first line
  • replacement in source_text_tests.lua at line 2005
    [4.82491][4.82491:82532]()
    Editor_state.cursor1 = {line=1, pos=3}
    [4.82491]
    [4.82532]
    Editor_state.cursor1 = {line=2, pos=1}
  • replacement in source_text_tests.lua at line 2015
    [4.22610][4.22610:22666]()
    check_eq(Editor_state.cursor1.pos, 1, '1/cursor:pos')
    [4.22610]
    [4.82980]
    check_eq(Editor_state.cursor1.pos, 2, '1/cursor:pos')
  • replacement in source_text_tests.lua at line 2021
    [4.83148][4.83148:83193]()
    Editor_state.lines = load_array{'abc abd'}
    [4.83148]
    [4.83193]
    Editor_state.lines = load_array{'abc ’abd'} -- contains unicode quote
  • replacement in source_text_tests.lua at line 2033
    [4.22725][4.22725:22781]()
    check_eq(Editor_state.cursor1.pos, 5, '1/cursor:pos')
    [4.22725]
    [4.83734]
    check_eq(Editor_state.cursor1.pos, 6, '1/cursor:pos')