bugfix: utf-8

akkartik
Dec 26, 2023, 7:19 PM
UCW27FJKW2BUMX5LMJEKX4ZOLJJZRO4X4G4R4VV2PJVTOK7A4UAAC

Dependencies

  • [2] KKMFQDR4 editing source code from within the app
  • [3] IMEJA43L snapshot
  • [4] 356GY7IQ unify two similar functions
  • [5] ISOFHXB2 App.width can no longer take a Text
  • [6] G3DLS5OU audit all asserts
  • [7] GL4Q5WCV keep text from overflowing right margin
  • [8] VSBSWTE4 bugfix: where cursor is drawn
  • [*] BULPIBEG beginnings of a module for the text editor

Change contents

  • replacement in text.lua at line 848
    [3.1233][3.3692:3747](),[3.1437][3.3692:3747](),[3.3692][3.3692:3747]()
    local offset = Text.offset(s, math.min(pos+1, #s+1))
    [3.1233]
    [3.3747]
    local len = utf8.len(s)
    local offset = Text.offset(s, math.min(pos+1, len+1))
  • replacement in source_text.lua at line 910
    [2.139424][2.139424:139479]()
    local offset = Text.offset(s, math.min(pos+1, #s+1))
    [2.139424]
    [2.139479]
    local len = utf8.len(s)
    local offset = Text.offset(s, math.min(pos+1, len+1))