Merge lines.love

[?]
Feb 10, 2023, 7:19 AM
XS3PZI7GCTJQNIB2BJRFBBXJZGVEOUVKSD442YDWZHEGIUAWMFQAC

Dependencies

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

Change contents

  • file deletion: source_edit.lua (----------)source_edit.lua (----------)
    [4.2][4.165725:165764](),[4.2][4.165725:165764](),[4.165764][4.152440:152440]()
    for _,line_cache in ipairs(State.line_cache) do line_cache.starty = nil end -- just in case we scroll
    if chord == 'escape' then
    State.search_term = nil
    State.search_text = nil
    State.cursor1 = State.search_backup.cursor
    State.screen_top1 = State.search_backup.screen_top
    State.search_backup = nil
    Text.redraw_all(State) -- if we're scrolling, reclaim all fragments to avoid memory leaks
    elseif chord == 'return' then
    State.search_term = nil
    State.search_text = nil
    State.search_backup = nil
    elseif chord == 'backspace' then
    local len = utf8.len(State.search_term)
    local byte_offset = Text.offset(State.search_term, len)
    State.search_term = string.sub(State.search_term, 1, byte_offset-1)
    State.search_text = nil
    elseif chord == 'down' then
    if State.cursor1.pos then
    State.cursor1.pos = State.cursor1.pos+1
    else
    State.cursor1.posB = State.cursor1.posB+1
    end
    Text.search_next(State)
    elseif chord == 'up' then
    Text.search_previous(State)
    end
    return
    elseif chord == 'C-f' then
    State.search_term = ''
    State.search_backup = {
    cursor={line=State.cursor1.line, pos=State.cursor1.pos, posB=State.cursor1.posB},
    screen_top={line=State.screen_top1.line, pos=State.screen_top1.pos, posB=State.screen_top1.posB},
    }
    assert(State.search_text == nil)
    -- bifold text
  • edit in source_edit.lua at line 321
    [4.158237]
    [4.158237]
    for _,line_cache in ipairs(State.line_cache) do line_cache.starty = nil end -- just in case we scroll