resolve conflicts

akkartik
Nov 25, 2023, 3:40 AM
ULEQ62Z7ZM2J2JE6WHTTO5EANEHVT7KXCWRXJXL36XIIULQ3AIEAC

Dependencies

  • [2] VLTU33KW resolve conflicts
  • [3] 6Z6WH62W resolve conflicts
  • [4] KKQKPGCI resolve conflicts
  • [5] LXTTOB33 extract a couple of files
  • [6] D2TYFYG2 Merge text.love
  • [7] VXORMHME delete experimental REPL
  • [8] BJ5X5O4A let's prevent the text cursor from ever getting on a drawing
  • [9] OTIBCAUJ love2d scaffold
  • [10] M5JXTW56 Merge text.love
  • [11] 34BZ5ZKN Merge lines.love
  • [12] RU4HIK43 Merge lines.love
  • [13] Q6RXCILQ Merge text.love
  • [14] KMSL74GA support selections in the source editor
  • [15] R5QXEHUI somebody stop me
  • [16] 2CFLXLIE Merge text.love
  • [17] D2GCFTTT clean up repl functionality
  • [18] 4YDBYBA4 clean up memory leak experiments
  • [19] JOPVPUSA editing source code from within the app
  • [20] T4FRZSYL delete an ancient, unused file
  • [21] RSZD5A7G forgot to add json.lua
  • [22] 6VJTQKW7 start supporting LÖVE v12
  • [23] BLWAYPKV extract a module
  • [24] 73OCE2MC after much struggle, a brute-force undo
  • [25] LWPFEZBI Merge lines.love
  • [26] SGMA5JLE save the list of tests in repo
  • [27] ED4Z6ORC cleaner API for file-system access
  • [28] PJ5PQAQE record support for multiple versions
  • [29] 66X36NZN a little more prose describing manual_tests
  • [30] VHUNJHXB Merge lines.love
  • [31] N2NUGNN4 include a brief reference enabling many useful apps
  • [32] QD4LOFQR Merge text.love
  • [33] 2CTN2IEF Merge lines.love
  • [34] XX7G2FFJ intermingle freehand line drawings with text
  • [35] FS2ITYYH record a known issue
  • [36] CAG7PP5Y Merge text.love
  • [37] OGUV4HSA remove some memory leaks from rendered fragments
  • [38] TVCPXAAU rename
  • [39] 4SR3Z4Y3 document the version of LÖVE I've been using
  • [40] ZLJYLPOT Merge lines.love
  • [41] 6LJZN727 handle chords
  • [42] KKMFQDR4 editing source code from within the app
  • [43] 2L5MEZV3 experiment: new edit namespace
  • [44] VHQCNMAR several more modules
  • [45] AVTNUQYR basic test-enabled framework
  • [46] 3PSFWAIL Merge lines.love
  • [47] K2X6G75Z start writing some tests for drawings
  • [48] VP5KC4XZ Merge lines.love
  • [49] ORKN6EOB Merge lines.love
  • [50] YF2ATH2Q Merge lines.love
  • [51] TLOAPLBJ add a license
  • [52] FM5LDKGT Merge text.love
  • [53] KWIVKQQ7 Merge lines.love
  • [54] VXRYVZ74 Merge text.love
  • [55] BULPIBEG beginnings of a module for the text editor
  • [56] TBTRYEBP Merge lines.love
  • [57] CE4LZV4T drop last couple of manual tests
  • [58] 36Z442IV back to commit 8123959e52f without code editing
  • [59] 3QNOKBFM beginnings of a test harness

Change contents

  • file deletion: source_text.lua (----------)source_text.lua (----------)
    [4.2][4.147125:147164](),[4.2][4.147125:147164](),[4.147164][4.83786:83786]()
    if x == 0 and bpos == 0 then
    assert(false, ("Infinite loop while line-wrapping. Editor is %dpx wide; window is %dpx wide"):format(State.width, App.screen.width))
    end
    -- Perform some early sanity checking here, in hopes that we correctly call
    -- this whenever we change editor state.
    if State.right <= State.left then
    assert(false, ('Right margin %d must be to the right of the left margin %d'):format(State.right, State.left))
    end
    State.line_cache = {}
    for i=1,#State.lines do
    State.line_cache[i] = {}
    end
    pos = pos + bpos
    local boffset = Text.offset(frag, bpos+1) -- byte _after_ bpos
    frag = string.sub(frag, boffset)
    --? if bpos > 0 then
    --? print('after chop:', frag)
    --? end
    frag_width = App.width(frag)
    end
    --? print('screen line:', pos)