extract a couple of methods
[?]
May 29, 2022, 6:11 AM
AYE2VEGJ63AWWX76SFQZLOTBIZOQRWBG4AZMIOSVOI2WZVRQJXYACDependencies
- [2]
OYXDYPGSget rid of debug variables - [3]
HMODUNJEscroll on backspace - [4]
ZPUQSPQPextract a few methods - [5]
WLHI7KD3new globals: draw partial screen line up top - [6]
H2DPLWMVsnapshot: wrapping long lines at word boundaries - [7]
QYIFOHW3first test! - [8]
2RXZ3PGObeginning of a new approach to scroll+wrap - [9]
JY4VK7L2rename - [10]
LERERVPHkeep one screen line of overlap on pagedown - [11]
SVJZZDC3snapshot - no, that's all wrong - [12]
A2NV3WVOscrolling with up arrow - [13]
KECEMMMRextract couple of functions - [14]
JRGTJ2IWquite the frustrating bugfix - [15]
XNFTJHC4split keyboard handling between Text and Drawing - [*]
BULPIBEGbeginnings of a module for the text editor - [*]
3OKKTUT4up and down arrow now moving by screen line where possible
Change contents
- replacement in text.lua at line 33
if line_index > Screen_top1.line or (line_index == Screen_top1.line and pos > Screen_top1.pos) thenif Text.lt1(Screen_top1, {line=line_index, pos=pos}) then - replacement in text.lua at line 46
if line_index > Screen_top1.line or (line_index == Screen_top1.line and pos >= Screen_top1.pos) thenif Text.le1(Screen_top1, {line=line_index, pos=pos}) then - replacement in text.lua at line 940
if Cursor1.line < Screen_top1.line or (Cursor1.line == Screen_top1.line and Cursor1.pos < Screen_top1.pos) thenif Text.lt1(Cursor1, Screen_top1) then - replacement in text.lua at line 945
assert(Cursor1.line > Screen_top1.line or (Cursor1.line == Screen_top1.line and Cursor1.pos >= Screen_top1.pos))assert(Text.le1(Screen_top1, Cursor1)) - replacement in text.lua at line 1113
if Cursor1.line > Screen_bottom1.line or (Cursor1.line == Screen_bottom1.line and Cursor1.pos >= Screen_bottom1.pos) thenif Text.le1(Screen_bottom1, Cursor1) then - edit in text.lua at line 1431[5.8443][18.1386]
endfunction Text.lt1(a, b)if a.line < b.line thenreturn trueendif a.line > b.line thenreturn falseendreturn a.pos < b.pos - edit in text.lua at line 1443[18.1391][18.1391]
function Text.le1(a, b)if a.line < b.line thenreturn trueendif a.line > b.line thenreturn falseendreturn a.pos <= b.posend