rename a couple of variables
[?]
Jul 8, 2022, 9:18 PM
KCLRP4VWT2PDYLEG6DB6DYJRC2U7X4ZFCG3NGBOSFOYV7VPNRGZQCDependencies
- [2]
LAW2O3NWextract variable Margin_left - [3]
DAENUOGVeliminate assumptions that line length == size in bytes - [4]
76AIXR7Hbugfix - [5]
BULPIBEGbeginnings of a module for the text editor - [6]
DFSDPDO7bugfix - [7]
JCUTYA6Okeep repeated cursor up/down motions from drifting left - [8]
ULKLJBN6couple of renames - [9]
HYEAFRZ2split mouse_pressed events between Text and Drawing - [10]
5Q6NIG66bugfix
Change contents
- replacement in text.lua at line 752
local left, right = 1, len+1local leftpos, rightpos = 1, len+1 - replacement in text.lua at line 755
--? print('nearest', x, '^'..line..'$', left, right)if left == right thenreturn left--? print('nearest', x, '^'..line..'$', leftpos, rightpos)if leftpos == rightpos thenreturn leftpos - replacement in text.lua at line 759
local curr = math.floor((left+right)/2)local curr = math.floor((leftpos+rightpos)/2) - replacement in text.lua at line 762
--? print('nearest', x, left, right, curr, currxmin, currxmax)--? print('nearest', x, leftpos, rightpos, curr, currxmin, currxmax) - replacement in text.lua at line 770
if left >= right-1 thenreturn rightif leftpos >= rightpos-1 thenreturn rightpos - replacement in text.lua at line 774
right = currrightpos = curr - replacement in text.lua at line 776
left = currleftpos = curr