rename a couple of variables

[?]
Jul 8, 2022, 9:18 PM
KCLRP4VWT2PDYLEG6DB6DYJRC2U7X4ZFCG3NGBOSFOYV7VPNRGZQC

Dependencies

  • [2] LAW2O3NW extract variable Margin_left
  • [3] DAENUOGV eliminate assumptions that line length == size in bytes
  • [4] 76AIXR7H bugfix
  • [5] BULPIBEG beginnings of a module for the text editor
  • [6] DFSDPDO7 bugfix
  • [7] JCUTYA6O keep repeated cursor up/down motions from drifting left
  • [8] ULKLJBN6 couple of renames
  • [9] HYEAFRZ2 split mouse_pressed events between Text and Drawing
  • [10] 5Q6NIG66 bugfix

Change contents

  • replacement in text.lua at line 752
    [3.745][3.445:476]()
    local left, right = 1, len+1
    [3.643]
    [3.1484]
    local leftpos, rightpos = 1, len+1
  • replacement in text.lua at line 755
    [3.35][3.1514:1615]()
    --? print('nearest', x, '^'..line..'$', left, right)
    if left == right then
    return left
    [3.35]
    [3.1615]
    --? print('nearest', x, '^'..line..'$', leftpos, rightpos)
    if leftpos == rightpos then
    return leftpos
  • replacement in text.lua at line 759
    [3.35][3.870:914](),[3.1623][3.870:914](),[3.870][3.870:914]()
    local curr = math.floor((left+right)/2)
    [3.1623]
    [2.2435]
    local curr = math.floor((leftpos+rightpos)/2)
  • replacement in text.lua at line 762
    [3.213][3.1624:1691](),[2.2541][3.1624:1691](),[3.1010][3.1624:1691]()
    --? print('nearest', x, left, right, curr, currxmin, currxmax)
    [2.2541]
    [3.1010]
    --? print('nearest', x, leftpos, rightpos, curr, currxmin, currxmax)
  • replacement in text.lua at line 770
    [3.1079][3.93:140]()
    if left >= right-1 then
    return right
    [3.1079]
    [3.140]
    if leftpos >= rightpos-1 then
    return rightpos
  • replacement in text.lua at line 774
    [3.1104][3.1104:1123]()
    right = curr
    [3.1104]
    [3.1123]
    rightpos = curr
  • replacement in text.lua at line 776
    [3.1132][3.1132:1150]()
    left = curr
    [3.1132]
    [3.1150]
    leftpos = curr