Merge upstream into main

[?]
Jul 18, 2022, 4:10 AM
WST3AGMF2P5EG3XDHBEQA5N63FBSGDVGZ6CA2DV2JWTT56JXBFDQC

Dependencies

  • [2] 7CEOB56D Merge upstream into main
  • [3] ILOA5BYF separate data structure for each line's cache data
  • [4] XNFTJHC4 split keyboard handling between Text and Drawing
  • [5] KAUD3YIK tests: deleting points/shapes
  • [6] HMODUNJE scroll on backspace
  • [7] OGUV4HSA remove some memory leaks from rendered fragments
  • [8] PX7DDEMO autosave slightly less aggressively
  • [9] 27DROQW2 Merge upstream into main
  • [10] OWK3U6VD tests for drawing polygons
  • [11] M6TH7VSZ rip out notion of Line_width
  • [12] 2JLVAYHB start decoupling editor tests from App
  • [13] 2RXZ3PGO beginning of a new approach to scroll+wrap
  • [14] IWYLK45K clicking to the right of a line within line width
  • [15] UHB4GARJ left/right margin -> left/right coordinates
  • [16] SPSW74Y5 add state arg to Text.keychord_pressed
  • [17] QCPXQ2E3 add state arg to a few functions
  • [18] LF7BWEG4 group all editor globals
  • [19] LNUHQOGH start passing in Editor_state explicitly
  • [20] LSYLEVBD drop some redundant args when clearing the cache
  • [21] EQP53UQV autosave slightly less aggressively
  • [22] PTDO2SOT add state arg to schedule_save
  • [23] AYE2VEGJ extract a couple of methods
  • [24] 42LVB4DE test: naming a point
  • [25] 7LVK4KRD fix a failing test
  • [26] CNCYMM6A make test initializations a little more obvious
  • [27] OEUU62GM Merge upstream into main
  • [*] LXTTOB33 extract a couple of files
  • [*] BULPIBEG beginnings of a module for the text editor
  • [*] K2X6G75Z start writing some tests for drawings

Change contents

  • edit in text_tests.lua at line 481
    [4.202][4.248:335](),[4.248][4.248:335](),[4.202][4.248:335](),[4.1505][4.248:335](),[4.3904][4.248:335](),[4.248][4.248:335]()
    -- 0 1 2
    -- 123456789012345678901
  • edit in text.lua at line 226
    [4.3000][4.2756:2810](),[4.3000][4.2756:2810]()
    Text.clear_cache(State.lines[State.cursor1.line])
  • resurrect zombie in text.lua at line 227
    [4.122][4.2810:2865](),[4.2810][4.2810:2865](),[4.2810][4.2810:2865]()
    assert(Text.le1(State.screen_top1, State.cursor1))
  • edit in drawing_tests.lua at line 341
    [4.116581][3.8968:9000](),[4.116581][3.8968:9000]()
    Text.redraw_all(Editor_state)
  • edit in drawing_tests.lua at line 528
    [4.122534][3.9298:9330](),[4.122534][3.9298:9330](),[4.123352][3.9331:9363](),[4.123352][3.9331:9363]()
    Text.redraw_all(Editor_state)
    Text.redraw_all(Editor_state)