Merge lines.love

[?]
Mar 19, 2023, 6:52 PM
Q7XPSKIIMSL2TU5GO6XX66VYWDTEQOIPA37ETUVOHCBMX5HI3EZQC

Dependencies

  • [2] 2TQUKHBC Merge lines.love
  • [3] TUN6TDO4 give a test a unique name
  • [4] MD3W5IRA new fork: rip out drawing support
  • [5] 3PSFWAIL Merge lines.love
  • [6] FS2ITYYH record a known issue
  • [7] LXTTOB33 extract a couple of files
  • [8] OTIBCAUJ love2d scaffold
  • [9] JOPVPUSA editing source code from within the app
  • [10] KMSL74GA support selections in the source editor
  • [11] ETXNVRPT Merge lines.love
  • [12] KOTNETIM repeat changes on source editor
  • [13] ZTZOO2OQ Merge lines.love
  • [14] VXORMHME delete experimental REPL
  • [15] ORRSP7FV deduce test names on failures
  • [16] 4SR3Z4Y3 document the version of LÖVE I've been using
  • [17] R5QXEHUI somebody stop me
  • [18] XX7G2FFJ intermingle freehand line drawings with text
  • [19] T4FRZSYL delete an ancient, unused file
  • [20] TVCPXAAU rename
  • [21] OGUV4HSA remove some memory leaks from rendered fragments
  • [22] KKMFQDR4 editing source code from within the app
  • [23] 3QNOKBFM beginnings of a test harness
  • [24] BLWAYPKV extract a module
  • [25] 66X36NZN a little more prose describing manual_tests
  • [26] CE4LZV4T drop last couple of manual tests
  • [27] VHQCNMAR several more modules
  • [28] D2GCFTTT clean up repl functionality
  • [29] RSZD5A7G forgot to add json.lua
  • [30] K2X6G75Z start writing some tests for drawings
  • [31] A4BSGS2C Merge lines.love
  • [32] GUOQRUL7 Merge lines.love
  • [33] 2CTN2IEF Merge lines.love
  • [34] 73OCE2MC after much struggle, a brute-force undo
  • [35] TLOAPLBJ add a license
  • [36] BULPIBEG beginnings of a module for the text editor
  • [37] AVTNUQYR basic test-enabled framework
  • [38] ORKN6EOB Merge lines.love
  • [39] VP5KC4XZ Merge lines.love
  • [40] 2L5MEZV3 experiment: new edit namespace
  • [41] 6LJZN727 handle chords
  • [42] VHUNJHXB Merge lines.love
  • [43] K74U4BAU Merge lines.love
  • [44] BJ5X5O4A let's prevent the text cursor from ever getting on a drawing
  • [45] 4YDBYBA4 clean up memory leak experiments
  • [46] JKENJ2UG 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]()
    function test_click_past_end_of_screen_line()
    -- display a wrapping line
    App.screen.init{width=75, height=80}
    Editor_state = edit.initialize_test_state()
    -- 12345678901234
    Editor_state.lines = load_array{"madam I'm adam"}
    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)
    local y = Editor_state.top
    -- display two screen lines with cursor on one of them
    App.screen.init{width=100, height=80}
    Editor_state = edit.initialize_test_state()
    Editor_state.left = 50 -- occupy only right side of screen
    Editor_state.lines = load_array{'abc def ghi jkl mno pqr stu'}
    Text.redraw_all(Editor_state)
    Editor_state.cursor1 = {line=1, pos=20}
    Editor_state.screen_top1 = {line=1, pos=1}
    Editor_state.screen_bottom1 = {}
    -- click on the other line
    edit.draw(Editor_state)
    edit.run_after_mouse_click(Editor_state, Editor_state.left+8,Editor_state.top+5, 1)
    -- cursor moves
    -- display two screen lines with cursor on one of them
    App.screen.init{width=50, height=80}
    Editor_state = edit.initialize_test_state()
    Editor_state.lines = load_array{'abc def ghi jkl mno pqr stu'}
    Text.redraw_all(Editor_state)
    Editor_state.cursor1 = {line=1, pos=20}
    Editor_state.screen_top1 = {line=1, pos=1}
    Editor_state.screen_bottom1 = {}
    -- click on the other line
    edit.draw(Editor_state)
    edit.run_after_mouse_click(Editor_state, Editor_state.left+8,Editor_state.top+5, 1)
    -- cursor moves
  • replacement in source_text_tests.lua at line 372
    [4.1992][4.18562:18612](),[4.18562][4.18562:18612]()
    -- display two lines with cursor on one of them
    [4.1948]
    [4.18612]
    -- display two screen lines with cursor on one of them
  • replacement in source_text_tests.lua at line 390
    [4.2434][4.19435:19485](),[4.19435][4.19435:19485]()
    -- display two lines with cursor on one of them
    [4.2363]
    [4.19485]
    -- display two screen lines with cursor on one of them
  • replacement in source_text_tests.lua at line 444
    [4.22001][4.22001:22040]()
    function test_click_on_wrapping_line()
    [4.22001]
    [4.22084]
    function test_click_past_end_of_screen_line()