bugfix

[?]
Jun 21, 2022, 2:20 PM
PIEDOKYQWPQIQV3UDNLHZU7BXDPI7YBZ2LOQ2I6MN5JQM2CPPDOAC

Dependencies

  • [2] 3ZYCPNQY clearer copy
  • [3] KOYAJWE4 extract a couple more methods
  • [4] SVJZZDC3 snapshot - no, that's all wrong
  • [5] V5MJRFOZ bugfix: down arrow doesn't scroll up unnecessarily
  • [6] ZPUQSPQP extract a few methods
  • [7] CBPV5SSI stop handling nil screen_line_starting_pos everywhere
  • [*] BULPIBEG beginnings of a module for the text editor
  • [*] GN3IF4WF bugfix: pasting newlines
  • [*] BJ5X5O4A let's prevent the text cursor from ever getting on a drawing

Change contents

  • edit in text.lua at line 358
    [10.602]
    [10.602]
    Lines[Cursor1.line].screen_line_starting_pos = nil
    Lines[Cursor1.line+1].fragments = nil
    Lines[Cursor1.line+1].screen_line_starting_pos = nil
  • replacement in text.lua at line 416
    [3.152][3.152:200]()
    --? print('up', Cursor1.pos, Screen_top1.pos)
    [3.152]
    [3.200]
    --? print('up', Cursor1.line, Cursor1.pos, Screen_top1.line, Screen_top1.pos)
  • edit in Manual_tests.md at line 14
    [2.188]
    * Some ADT/interface support would be helpful in keeping per-line state in
    sync. Any change to line data should clear line `fragments` and
    `screen_line_starting_pos`.