Instead of recomputing line_cache after every. single. print, we do so just before we need it to draw a frame.
2SE2CRDRZYSNDLVDE4WV7OQATB4IPFLGH44XB2YM6EUMVH3UFL4QC
5OCELN374XROT7WTYYJZRHTEEDQ4MOBZ64XECZJVEPWNT3GRVF4AC
4HCP3NTOPDNYUHD666O3BOGZEZDTP3YJHWKLSTI5J4DBDFQ6QYDAC
YK5FRJWHTG3EUZFKVMYIFAENIQG3LKSFNNMD4BYRPPKR7KMKEJQQC
I52S4E5FT6E6FHH3QEDJPWO7C6W7AIMAFDP2KQ5FEWXFQX7RY6CAC
ZM7NOBRMD5HHA35Y4JDC76EOA2RD4KQOQCPURXYKXA6ABMKOJIGQC
Text.redraw_all(Current_pane.output_editor_state)
if #Current_pane.output_editor_state.lines ~= #Current_pane.output_editor_state.line_cache then Text.redraw_all(Current_pane.output_editor_state) end
if #Current_pane.output_editor_state.lines ~= #Current_pane.output_editor_state.line_cache then
end