bugfix: infinite loop inside a very narrow window
Dependencies
- [2]
I64IPGJXavoid saving fragments in lines - [3]
GZ5WULJVswitch source side to new screen-line-based render - [4]
UPCIYZEUdrop an unnecessary level of indent - [5]
KKMFQDR4editing source code from within the app - [*]
BULPIBEGbeginnings of a module for the text editor
Change contents
- replacement in text.lua at line 106
-- everything works if bpos == 0, but is a little inefficientif x == 0 and bpos == 0 thenassert(false, ("Infinite loop while line-wrapping. Editor is %dpx wide; window is %dpx wide"):format(State.width, App.screen.width))end - replacement in source_text.lua at line 131
-- everything works if bpos == 0, but is a little inefficientif x == 0 and bpos == 0 thenassert(false, ("Infinite loop while line-wrapping. Editor is %dpx wide; window is %dpx wide"):format(State.width, App.screen.width))end