allow Text.nearest_pos_less_than to return 0
[?]
Jul 20, 2022, 2:08 PM
JLU2RMC4WICQSGLPVSQNJ4OSAUNHH3IP3FT37WIPBCKCUUQE65GACDependencies
- [2]
UPCIYZEUdrop an unnecessary level of indent - [3]
HGC5RGJPswitch to line index in a function - [4]
GL4Q5WCVkeep text from overflowing right margin - [5]
BULPIBEGbeginnings of a module for the text editor - [6]
ULKLJBN6couple of renames - [7]
KURLAXXIclean up some prints - [8]
LF7BWEG4group all editor globals - [9]
IMEJA43Lsnapshot - [10]
PFT5Y2ZYmove - [11]
CVSRHMJ2experiment: slightly adaptive scrolling - [12]
356GY7IQunify two similar functions - [13]
LXTTOB33extract a couple of files
Change contents
- replacement in text_tests.lua at line 1047
App.screen.check(y, 'jkl m', 'F - test_pagedown_can_start_from_middle_of_long_wrapping_line/screen:2')App.screen.check(y, 'jkl ', 'F - test_pagedown_can_start_from_middle_of_long_wrapping_line/screen:2') - replacement in text_tests.lua at line 1049
App.screen.check(y, 'no ', 'F - test_pagedown_can_start_from_middle_of_long_wrapping_line/screen:3')App.screen.check(y, 'mno ', 'F - test_pagedown_can_start_from_middle_of_long_wrapping_line/screen:3') - replacement in text.lua at line 107
assert(bpos > 0) -- avoid infinite loop when window is too narrowif bpos == 0 then break end -- avoid infinite loop when window is too narrow - edit in text.lua at line 803
if x == 0 thenreturn 1end - replacement in text.lua at line 808
local left, right = 1, len+1local left, right = 0, len+1