purge obsolete term 'fragment'

akkartik
Jul 8, 2024, 7:26 AM
7ZXZGVHM2THAGJABJZLKW56VG72AD3Z6DINZ7XBWOYDJX4J77PMQC

Dependencies

  • [2] PNHUONCT update documentation on fragments
  • [3] UBA2ZUCP remove a duplicate print to screen
  • [4] IPMYE6WT establish a fairly fundamental invariant
  • [5] 2TCIWW6Z stop caching starty
  • [6] KECEMMMR extract couple of functions
  • [7] Z4XRNDTR find text
  • [8] LSYLEVBD drop some redundant args when clearing the cache
  • [9] 3TFEAQSW start using some globals
  • [10] 2L5MEZV3 experiment: new edit namespace
  • [11] LF7BWEG4 group all editor globals
  • [12] RTDYYP4H bugfix: text past cursor was rendered red on wrapped lines
  • [13] Z5HLXU4P add state arg to a few functions
  • [14] 62JEPVQ3 bugfix: backspace from start of final line
  • [15] HOSPP2AN crisp font rendering
  • [16] TGHAJBES use line cache for drawings as well
  • [17] G3DLS5OU audit all asserts
  • [18] ILOA5BYF separate data structure for each line's cache data
  • [19] OI4FPFIN support drawings in the source editor
  • [20] G54H3YG2 get rid of all bifold text
  • [21] 242L3OQX bugfix: ensure Cursor_line is always on a text line
  • [22] OGUV4HSA remove some memory leaks from rendered fragments
  • [23] KZ5GAYRP this fixes the immediate regression
  • [24] 2LOQ5ALJ add args to some functions
  • [25] H2DPLWMV snapshot: wrapping long lines at word boundaries
  • [26] XVR2O5PI change text cursor shape
  • [27] LNUHQOGH start passing in Editor_state explicitly
  • [28] YLKLDF4R .
  • [29] WOXIYUTL bugfix: manage screen_top and cursor when resizing
  • [30] QCPXQ2E3 add state arg to a few functions
  • [31] UHB4GARJ left/right margin -> left/right coordinates
  • [32] MXA3RZYK deduce left/right from state where possible
  • [33] WLWNS6FB a bug I've never run into
  • [34] HALS7E5U more clearly skip prints before screen top
  • [35] ULKLJBN6 couple of renames
  • [36] 2LEXWUW3 get rid of some ridiculous code
  • [37] KKMFQDR4 editing source code from within the app
  • [38] 3OKKTUT4 up and down arrow now moving by screen line where possible
  • [39] 5DOC2CBM extract a function
  • [40] 2RXZ3PGO beginning of a new approach to scroll+wrap
  • [41] F65ADDGL add state arg to a few functions
  • [42] KOYAJWE4 extract a couple more methods
  • [43] LK4ZW4BB bugfix
  • [44] XNFTJHC4 split keyboard handling between Text and Drawing
  • [45] ISOFHXB2 App.width can no longer take a Text
  • [46] I64IPGJX avoid saving fragments in lines
  • [47] MUDXM3JI clearing starty is redundant in mutations
  • [48] ZS5IYZH5 stop caching screen_bottom1
  • [49] UN7GKYV5 support hyperlinks in the source editor
  • [50] BH7BT36L ctrl+a: select entire buffer
  • [51] PTDO2SOT add state arg to schedule_save
  • [52] GCEF4N3V stop repeatedly checking for line wrapping
  • [53] EB6LHFJR use deepcopy where possible
  • [54] KMSL74GA support selections in the source editor
  • [*] BULPIBEG beginnings of a module for the text editor

Change contents

  • replacement in text.lua at line 50
    [6.2604][3.126:151]()
    -- render fragment
    [6.2604]
    [3.151]
    -- render screen line
  • replacement in text.lua at line 218
    [6.1104][6.588:685](),[6.588][6.588:685]()
    Text.redraw_all(State) -- if we're scrolling, reclaim all fragments to avoid memory leaks
    [6.1104]
    [6.2992]
    Text.redraw_all(State) -- if we're scrolling, reclaim all line caches to avoid memory leaks
  • replacement in text.lua at line 356
    [6.566][6.566:659]()
    Text.redraw_all(State) -- if we're scrolling, reclaim all fragments to avoid memory leaks
    [6.566]
    [5.418]
    Text.redraw_all(State) -- if we're scrolling, reclaim all line caches to avoid memory leaks
  • replacement in text.lua at line 405
    [6.3830][6.1164:1257]()
    Text.redraw_all(State) -- if we're scrolling, reclaim all fragments to avoid memory leaks
    [6.791]
    [6.1240]
    Text.redraw_all(State) -- if we're scrolling, reclaim all line caches to avoid memory leaks
  • replacement in text.lua at line 467
    [6.1234][6.1234:1329]()
    Text.redraw_all(State) -- if we're scrolling, reclaim all fragments to avoid memory leaks
    [6.1234]
    [6.204]
    Text.redraw_all(State) -- if we're scrolling, reclaim all line caches to avoid memory leaks
  • replacement in text.lua at line 613
    [6.1459][6.1459:1554]()
    Text.redraw_all(State) -- if we're scrolling, reclaim all fragments to avoid memory leaks
    [6.1459]
    [6.568]
    Text.redraw_all(State) -- if we're scrolling, reclaim all line caches to avoid memory leaks
  • replacement in text.lua at line 758
    [6.1425][6.3781:3874](),[6.3068][6.3781:3874](),[6.3781][6.3781:3874]()
    Text.redraw_all(State) -- if we're scrolling, reclaim all fragments to avoid memory leaks
    [6.3068]
    [6.931]
    Text.redraw_all(State) -- if we're scrolling, reclaim all line caches to avoid memory leaks
  • replacement in text.lua at line 1047
    [6.5911][6.698:732](),[6.4025][6.698:732]()
    --? print('clearing fragments')
    [6.5911]
    [4.0]
    --? print('clearing line caches')
  • replacement in source_text.lua at line 292
    [6.2660][6.102691:102788](),[6.102691][6.102691:102788]()
    Text.redraw_all(State) -- if we're scrolling, reclaim all fragments to avoid memory leaks
    [6.2660]
    [6.102788]
    Text.redraw_all(State) -- if we're scrolling, reclaim all line caches to avoid memory leaks
  • replacement in source_text.lua at line 430
    [6.4458][6.4458:4551]()
    Text.redraw_all(State) -- if we're scrolling, reclaim all fragments to avoid memory leaks
    [6.4458]
    [6.4551]
    Text.redraw_all(State) -- if we're scrolling, reclaim all line caches to avoid memory leaks
  • replacement in source_text.lua at line 479
    [6.108977][6.108977:109070]()
    Text.redraw_all(State) -- if we're scrolling, reclaim all fragments to avoid memory leaks
    [6.108930]
    [6.5132]
    Text.redraw_all(State) -- if we're scrolling, reclaim all line caches to avoid memory leaks
  • replacement in source_text.lua at line 541
    [6.2790][6.2790:2885]()
    Text.redraw_all(State) -- if we're scrolling, reclaim all fragments to avoid memory leaks
    [6.2790]
    [6.111315]
    Text.redraw_all(State) -- if we're scrolling, reclaim all line caches to avoid memory leaks
  • replacement in source_text.lua at line 687
    [6.3015][6.3015:3110]()
    Text.redraw_all(State) -- if we're scrolling, reclaim all fragments to avoid memory leaks
    [6.3015]
    [6.123313]
    Text.redraw_all(State) -- if we're scrolling, reclaim all line caches to avoid memory leaks
  • replacement in source_text.lua at line 832
    [6.4080][6.128576:128669](),[6.6960][6.128576:128669](),[6.128576][6.128576:128669]()
    Text.redraw_all(State) -- if we're scrolling, reclaim all fragments to avoid memory leaks
    [6.6960]
    [6.128682]
    Text.redraw_all(State) -- if we're scrolling, reclaim all line caches to avoid memory leaks
  • replacement in source_text.lua at line 1121
    [6.146487][6.146487:146521]()
    --? print('clearing fragments')
    [6.146487]
    [4.279]
    --? print('clearing line caches')
  • replacement in source_edit.lua at line 56
    [6.153575][2.11:92](),[2.92][6.153676:153789](),[6.153676][6.153676:153789]()
    -- fragments: snippets of the line guaranteed to not straddle screen lines
    -- screen_line_starting_pos: optional array of grapheme indices if it wraps over more than one screen line
    [6.153505]
    [6.153789]
    -- screen_line_starting_pos: optional array of codepoint indices if it wraps over more than one screen line
  • replacement in source_edit.lua at line 402
    [6.158402][6.158402:158499]()
    Text.redraw_all(State) -- if we're scrolling, reclaim all fragments to avoid memory leaks
    [6.158402]
    [6.158499]
    Text.redraw_all(State) -- if we're scrolling, reclaim all line caches to avoid memory leaks
  • replacement in source_edit.lua at line 447
    [6.23121][6.161174:161276](),[6.161174][6.161174:161276]()
    -- if we're scrolling, reclaim all fragments to avoid memory leaks
    Text.redraw_all(State)
    [6.23121]
    [6.161276]
    Text.redraw_all(State) -- if we're scrolling, reclaim all line caches to avoid memory leaks
  • replacement in source_edit.lua at line 460
    [6.23211][6.161677:161779](),[6.161677][6.161677:161779]()
    -- if we're scrolling, reclaim all fragments to avoid memory leaks
    Text.redraw_all(State)
    [6.23211]
    [6.161779]
    Text.redraw_all(State) -- if we're scrolling, reclaim all line caches to avoid memory leaks
  • replacement in edit.lua at line 398
    [6.7184][6.6689:6786]()
    Text.redraw_all(State) -- if we're scrolling, reclaim all fragments to avoid memory leaks
    [6.7184]
    [6.11262]
    Text.redraw_all(State) -- if we're scrolling, reclaim all line caches to avoid memory leaks
  • replacement in edit.lua at line 446
    [6.104][6.104:206]()
    -- if we're scrolling, reclaim all fragments to avoid memory leaks
    Text.redraw_all(State)
    [6.104]
    [6.470]
    Text.redraw_all(State) -- if we're scrolling, reclaim all line caches to avoid memory leaks
  • replacement in edit.lua at line 459
    [6.296][6.296:398]()
    -- if we're scrolling, reclaim all fragments to avoid memory leaks
    Text.redraw_all(State)
    [6.296]
    [6.498]
    Text.redraw_all(State) -- if we're scrolling, reclaim all line caches to avoid memory leaks