bugfix: infinite loop if window is too narrow
Dependencies
- [2]
OE26XIQObring back syntax highlighting (but so ugly) - [3]
SFRZIHVEbugfix: update all panes on resize - [4]
I64IPGJXavoid saving fragments in lines - [5]
UPCIYZEUdrop an unnecessary level of indent - [*]
BULPIBEGbeginnings of a module for the text editor - [*]
PRE6XPRNresponsively increase/decrease font height - [*]
VEAVIL4Xresize handler
Change contents
- replacement in text.lua at line 138
-- 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 - edit in 0032-update_font_settings at line 12
if pane.editor_state.right < pane.editor_state.left thenpane.editor_state.right = pane.editor_state.left+1end - edit in 0031-on.resize at line 5
if pane.editor_state.right < pane.editor_state.left thenpane.editor_state.right = pane.editor_state.left+1end