hoist and duplicate a conditional

[?]
Jul 31, 2023, 3:24 PM
TWXPV2AC7EK2XKGQCYJLRV6QWPGIWMOZOVPMWJXONRUTROO5QW3QC

Dependencies

  • [2] ZPQI5UL3 bugfix: never use utf8 pos in string.sub
  • [3] ZE7LVQNE improve a comment
  • [4] GZ5WULJV switch source side to new screen-line-based render
  • [5] S2QMLRXL stop creating a singleton table for every word
  • [6] CQWVUCXZ bugfix: syntax highlighting in source editor
  • [7] 6WDBV52Z move a var closer to its use
  • [8] G54H3YG2 get rid of all bifold text
  • [9] H4R5BHVY no more Text allocations
  • [10] SDEY7LFJ rename a variable
  • [11] Z4XRNDTR find text
  • [12] HALS7E5U more clearly skip prints before screen top
  • [13] I64IPGJX avoid saving fragments in lines
  • [14] KKMFQDR4 editing source code from within the app
  • [15] DHI6IJCN selecting text and deleting selections
  • [*] BULPIBEG beginnings of a module for the text editor

Change contents

  • replacement in text.lua at line 34
    [3.49][4.659:740](),[4.342][4.659:740](),[4.740][4.422:458](),[4.422][4.422:458]()
    if pos <= State.cursor1.pos and pos + frag_len >= State.cursor1.pos then
    if State.search_term then
    [3.49]
    [2.3]
    if State.search_term then
    if pos <= State.cursor1.pos and pos + frag_len >= State.cursor1.pos then
  • replacement in text.lua at line 43
    [4.854][4.854:869]()
    else
    [4.854]
    [4.243]
    end
    else
    if pos <= State.cursor1.pos and pos + frag_len >= State.cursor1.pos then
  • replacement in source_text.lua at line 56
    [3.99][4.1458:1539](),[4.1458][4.1458:1539](),[4.1539][4.88412:88448](),[4.88412][4.88412:88448]()
    if pos <= State.cursor1.pos and pos + frag_len >= State.cursor1.pos then
    if State.search_term then
    [3.99]
    [2.242]
    if State.search_term then
    if pos <= State.cursor1.pos and pos + frag_len >= State.cursor1.pos then
  • replacement in source_text.lua at line 65
    [4.88851][4.88851:88889]()
    elseif Focus == 'edit' then
    [4.88851]
    [4.626]
    end
    elseif Focus == 'edit' then
    if pos <= State.cursor1.pos and pos + frag_len >= State.cursor1.pos then