bugfix in changing shape mid-stroke

[?]
Dec 13, 2022, 7:17 AM
GN3C6AGM5KFHXHAJFRQIHC27HFWQFPIMQ4J6TKZVAW6VMWR32CPAC

Dependencies

  • [2] TGZAJUEF bring back a set of constants
  • [3] OGD5RAQK bugfix: naming points in drawings
  • [4] APYPFFS3 call edit rather than App callbacks in tests
  • [5] UHB4GARJ left/right margin -> left/right coordinates
  • [6] LNUHQOGH start passing in Editor_state explicitly
  • [7] CRYGI3LR more drawing tests
  • [8] MTJEVRJR add state arg to a few functions
  • [9] 3MAZEQK5 add state arg to Text.textinput
  • [10] 2L5MEZV3 experiment: new edit namespace
  • [11] LF7BWEG4 group all editor globals
  • [*] K2X6G75Z start writing some tests for drawings

Change contents

  • replacement in edit.lua at line 292
    [4.10292][3.26:133](),[3.133][4.777:806](),[4.10292][4.777:806]()
    for _,line_cache in ipairs(State.line_cache) do line_cache.starty = nil end -- just in case we scroll
    Text.textinput(State, t)
    [4.10292]
    [4.10314]
    local drawing_index, drawing = Drawing.current_drawing(State)
    if drawing_index == nil then
    for _,line_cache in ipairs(State.line_cache) do line_cache.starty = nil end -- just in case we scroll
    Text.textinput(State, t)
    end
  • replacement in drawing_tests.lua at line 188
    [2.2495][4.8742:8787](),[4.26561][4.8742:8787](),[4.8742][4.8742:8787]()
    edit.run_after_keychord(Editor_state, 'o')
    [2.2495]
    [2.2496]
    edit.run_after_textinput(Editor_state, 'o')