a bug I've never run into

[?]
Jul 13, 2022, 3:38 PM
WLWNS6FBT6D3HKOFWDPBKLK7KS73LJJLWLHNWX3YJ723OHJBZGDQC

Dependencies

  • [2] BXJMGTV2 hoist couple of variables out
  • [3] RT6EV6OP delegate update events to drawings
  • [4] DRFE3B3Z mouse buttons are integers, not strings
  • [5] 2L5MEZV3 experiment: new edit namespace
  • [6] PTDO2SOT add state arg to schedule_save
  • [7] JFFUF5AL override mouse state lookups in tests
  • [8] QCPXQ2E3 add state arg to a few functions
  • [9] LF7BWEG4 group all editor globals
  • [10] 7SFHSB47 rename
  • [11] EHSUSZMK more idiomatic variable names
  • [12] PJEQCTBL add state arg to Drawing.update
  • [13] LNUHQOGH start passing in Editor_state explicitly
  • [*] K2X6G75Z start writing some tests for drawings
  • [*] T7SJSJIH test: undo naming a point
  • [*] BLWAYPKV extract a module

Change contents

  • replacement in edit.lua at line 355
    [3.8139][3.6871:6968]()
    Text.redraw_all(State) -- if we're scrolling, reclaim all fragments to avoid memory leaks
    [3.8139]
    [3.470]
    -- invalidate various cached bits of lines
    State.lines.current_drawing = nil
    -- if we're scrolling, reclaim all fragments to avoid memory leaks
    Text.redraw_all(State)
  • replacement in edit.lua at line 370
    [3.8421][3.6969:7066]()
    Text.redraw_all(State) -- if we're scrolling, reclaim all fragments to avoid memory leaks
    [3.8421]
    [3.498]
    -- invalidate various cached bits of lines
    State.lines.current_drawing = nil
    -- if we're scrolling, reclaim all fragments to avoid memory leaks
    Text.redraw_all(State)
  • edit in drawing_tests.lua at line 646
    [3.124507]
    [16.1347]
    --? print('a', Editor_state.lines.current_drawing)
  • edit in drawing_tests.lua at line 654
    [3.124683]
    [16.1704]
    --? print('b', Editor_state.lines.current_drawing)
  • edit in drawing.lua at line 244
    [3.254][2.17:77]()
    if drawing.y == nil then
    return -- first draw?
    end