If cursor was on screen for some editable pane, and we press a key, cursor should still be on screen after.
This compensates for the loss of the previous assertion. It isn't actually always true, however. Lots of crashes. But this is the world we want to get to.
V4ZZDSYWKYREINXLP6NZ4O2JK6J6FEWIKA7E22FUO7TTJAXGKPOAC
CZY3IDERLI6MTKKKMX6QLLERSPM2ZJ57NGQRKILJBM7S5PYPQ3XAC
J3ER7DFO2TXYUMJAXZUFEHQNLFDNIXSYDTE7HEFGQ2RYB3A6RFPAC
OTIBCAUJ3KDQJLVDN3A536DLZGNRYMGJLORZVR3WLCGXGO6UGO6AC
VHWC2IGQD72ZZUIONIAEP45KPMPX2N6DXN6NU2QGBIWDUHP7INAAC
MO4B3HJQL7KU2CETG74EV367YPREQN3Z5DJP2MNHITVW2KQRXRCAC
S4U35JJQWC3CBNKHAEZ2DYEGUT5L3UYVAO6PJ5R7HSTD53KWVAXQC
if pane.show_cursor and Surface.cursor_on_screen_check then
print(('screen top is at %d,%d'):format(pane.screen_top1.line, pane.screen_top1.pos))
print(('cursor is at %d,%d; y %d'):format(pane.cursor1.line, pane.cursor1.pos, pane.cursor_y))
assert(pane.cursor_y)
Surface.cursor_on_screen_check = false
end