extract a function

[?]
Jun 23, 2022, 6:09 PM
PLKNHYZ4KXWWKC2DHXCI4WVO23I7VMEVYT5H2J6JDE4S3D3CHDJQC

Dependencies

  • [2] 65XHTZEK regression: couldn't do many drawing operations because line.y was reset
  • [3] MP2TBKU6 bugfix: crash in Text.up() after return
  • [4] PIEDOKYQ bugfix
  • [5] PVEZKGAC bugfix: recompute screen lines in backspace/delete
  • [6] XNFTJHC4 split keyboard handling between Text and Drawing
  • [7] SLLR6KKI bugfix for non-ASCII
  • [8] UFIUYYYV additional logging for an active bug
  • [9] OGUV4HSA remove some memory leaks from rendered fragments
  • [10] LXTTOB33 extract a couple of files
  • [11] YLKLDF4R .
  • [12] GCEF4N3V stop repeatedly checking for line wrapping
  • [13] HOSPP2AN crisp font rendering
  • [14] KZ5GAYRP this fixes the immediate regression
  • [15] R53OF3ON one bug I've repeatedly run into while testing with Moby Dick
  • [16] GN3IF4WF bugfix: pasting newlines
  • [17] NZKYPBSK check for scroll when just typing
  • [18] YW5324Q3 bugfix: cut (C-x) without first selecting anything
  • [19] KOTI3MFG bugfix in previous commit
  • [20] WY3JD6W6 bugfix
  • [21] 2RXZ3PGO beginning of a new approach to scroll+wrap
  • [22] H2DPLWMV snapshot: wrapping long lines at word boundaries
  • [23] 2ZYV7D3W handle tab characters
  • [24] QKAMUWSB another bugfix in scrolling while inserting text
  • [*] BULPIBEG beginnings of a module for the text editor

Change contents

  • replacement in text.lua at line 158
    [6.285][6.695:733](),[6.695][6.695:733](),[6.733][6.2052:2105]()
    Lines[Cursor1.line].fragments = nil
    Lines[Cursor1.line].screen_line_starting_pos = nil
    [6.285]
    [6.733]
    Text.clear_cache(Lines[Cursor1.line])
  • replacement in text.lua at line 204
    [6.2556][6.2315:2359](),[6.2359][5.3:62]()
    Lines[Cursor1.line].fragments = nil
    Lines[Cursor1.line].screen_line_starting_pos = nil
    [6.2556]
    [6.2359]
    Text.clear_cache(Lines[Cursor1.line])
  • replacement in text.lua at line 215
    [6.2679][6.2679:2725](),[6.2725][5.63:124]()
    Lines[Cursor1.line-1].fragments = nil
    Lines[Cursor1.line-1].screen_line_starting_pos = nil
    [6.2679]
    [6.2725]
    Text.clear_cache(Lines[Cursor1.line-1])
  • replacement in text.lua at line 250
    [6.3565][6.3252:3296](),[6.3296][5.125:184]()
    Lines[Cursor1.line].fragments = nil
    Lines[Cursor1.line].screen_line_starting_pos = nil
    [6.3565]
    [6.3296]
    Text.clear_cache(Lines[Cursor1.line])
  • replacement in text.lua at line 259
    [6.3558][6.3558:3602](),[6.3602][5.185:244]()
    Lines[Cursor1.line].fragments = nil
    Lines[Cursor1.line].screen_line_starting_pos = nil
    [6.3558]
    [6.3602]
    Text.clear_cache(Lines[Cursor1.line])
  • replacement in text.lua at line 352
    [6.564][6.564:602](),[6.602][4.3:151]()
    Lines[Cursor1.line].fragments = nil
    Lines[Cursor1.line].screen_line_starting_pos = nil
    Lines[Cursor1.line+1].fragments = nil
    Lines[Cursor1.line+1].screen_line_starting_pos = nil
    [6.564]
    [6.602]
    Text.clear_cache(Lines[Cursor1.line])
    Text.clear_cache(Lines[Cursor1.line+1])
  • replacement in text.lua at line 879
    [2.20][6.4058:4123](),[6.4058][6.4058:4123]()
    line.fragments = nil
    line.screen_line_starting_pos = nil
    [2.20]
    [6.2910]
    Text.clear_cache(line)
  • edit in text.lua at line 883
    [6.2921]
    [26.1438]
    function Text.clear_cache(line)
    line.fragments = nil
    line.screen_line_starting_pos = nil
    end
  • replacement in select.lua at line 138
    [6.47298][6.47298:47373]()
    Lines[minl].fragments = nil
    Lines[minl].screen_line_starting_pos = nil
    [6.47298]
    [3.1310]
    Text.clear_cache(Lines[minl])