bugfix in commit e51ce12969

[?]
Jun 12, 2022, 2:02 PM
IDG26SXKRKPRUQM3G2MMBQR3UZGNU7NCWJBBDKKIM5IGUNJQ2URQC

Dependencies

  • [2] TVM2WIHH bugfix: autosave and undo in a couple of cases
  • [3] ESETRNLB bugfix: printing the first part of a line at the bottom made it seem non-wrapping
  • [4] 65XHTZEK regression: couldn't do many drawing operations because line.y was reset
  • [5] LS55YKGW switch copy/paste to ctrl- hotkeys
  • [6] JCSLDGAH beginnings of support for multiple shapes
  • [7] 6LJZN727 handle chords
  • [8] YTSPVDZH first successful pagedown test, first bug found by test
  • [9] 252M2QMD forgot to move this special case out
  • [10] XNFTJHC4 split keyboard handling between Text and Drawing
  • [11] AVTNUQYR basic test-enabled framework
  • [12] R6GUSTBY default font size and line-height
  • [13] HOSPP2AN crisp font rendering
  • [14] NQWWTGXR switch undo/redo to ctrl- hotkeys
  • [15] Z4XRNDTR find text
  • [*] OTIBCAUJ love2d scaffold

Change contents

  • replacement in main.lua at line 452
    [2.69][2.69:112](),[2.112][3.4979:5015](),[3.457][3.4979:5015](),[3.3882][3.4979:5015](),[3.4979][3.4979:5015](),[3.5015][2.113:217]()
    local before = snapshot(drawing_index)
    Drawing.keychord_pressed(chord)
    record_undo_event({before=before, after=snapshot(drawing_index)})
    save_to_disk(Lines, Filename)
    [2.69]
    [3.3]
    if drawing_index then
    local before = snapshot(drawing_index)
    Drawing.keychord_pressed(chord)
    record_undo_event({before=before, after=snapshot(drawing_index)})
    save_to_disk(Lines, Filename)
    end