Scenario: select a long note that doesn't fit on screen maximize and edit the note (in any order) ensure the note still doesn't fit on screen press pagedown
Before this commit, the cursor would no longer be visible. Any attempt to move the cursor would then crash the editor.
The cause, as expected, was a missing cache invalidation (Text.redraw_all).
I also had to move some code around so I'm not invalidating on every frame.
Still more evidence that eliminating the caching in lines2.love and its descendants was a win. But it'll likely never be a priority to port pensieve to use lines2.love..
GXUJ3L2JCYUSW2WFVM4LR7XAJ2MA6CEXURJLFXVGN6YVBSHNGATQC 6GP2UPJYSIBGAUEPRIS5ZOAM2XNQ3YQMX3TM5ARXWAJ2DTQ4RYLAC JMUE7GSN6QDQZ6NDRB55MRJMKJN6LBD6MVQPKROYPDOIXM7I3XNQC KKMFQDR43ZWVCDRHQLWWX3FCWCFA3ZSXYOBRJNPHUQZR2XPKWULAC QLG4WQX6Q3G4VHT2S5CGBSIQCMYIVLCVPMETRCS4A7UEV6V5PXFAC LEP7X3CT5H7NRQOBIAKQU32QLQQWLBURBNTR2YZUYL53C5BRAM6QC 3JDTNKUEWV3V2ABWCOAR4I5LHY3R4MARCFAAQ3KEYGKYHQOXCC2QC GQBUV2XOMEPMTXMPCBQWGGIUXGQDX77VTGPFIG6YT7G64ASOYHXQC pane.top = Header_height + Margin_abovepane.left = App.screen.width/2 - 20*pane.font:getWidth('m')pane.right = App.screen.width/2 + 20*pane.font:getWidth('m')pane.width = pane.right - pane.left
if Cursor_pane.col >= 1 thenlocal pane = Surface[Cursor_pane.col][Cursor_pane.row]if pane thenpane.top = Header_height + Margin_abovepane.left = App.screen.width/2 - 20*pane.font:getWidth('m')pane.right = App.screen.width/2 + 20*pane.font:getWidth('m')pane.width = pane.right - pane.leftText.redraw_all(pane)endend