5U5N3KZY7HZB4YV3UBFO7ZZJLIJUWLKYDSHZXJVWOB36T2M2HWGQC
OANSMSQYJARQ5ZCJ62CO3TL4EF7ZDJE6RUGGROWDTMTZRHBUGMGQC
DYPXQWZ6RE4WQWYRMWLI4JVNTEH637CDVLG5RQ3D5KNPZ73C7UHAC
CZY3IDERLI6MTKKKMX6QLLERSPM2ZJ57NGQRKILJBM7S5PYPQ3XAC
OTIBCAUJ3KDQJLVDN3A536DLZGNRYMGJLORZVR3WLCGXGO6UGO6AC
NGCYNQEAAROJCQKUJDLGZALNYAU5MTNTGW4XBG6MGAHSHFG6PPMAC
MO4B3HJQL7KU2CETG74EV367YPREQN3Z5DJP2MNHITVW2KQRXRCAC
BJ5X5O4ACBBJ56LRBBSTCW6IBQP4HAEOOOPNH3SKTA4F66YTOIDAC
pane.screen_top1 = schema1_of_y(pane, Display_settings.y - Margin_top)
--? print(('%d,%d: adjusting screen_top1 %d,%d'):format(column_index, pane_index, pane.screen_top1.line, pane.screen_top1.pos))
pane.screen_top1, y_offset = schema1_of_y(pane, Display_settings.y - Margin_top)
--? print(('%d,%d: => %d,%d'):format(column_index, pane_index, pane.screen_top1.line, pane.screen_top1.pos))
--? print(('%d,%d: adjusting pane top %d; screen_top is at line %d (max %d)'):format(column_index, pane_index, pane.top, pane.screen_top1.line, #pane.lines))
pane.top = sy - Display_settings.y + Margin_above
--? print(('%d,%d; %d,%d: adjusting pane top %d; screen_top is at %d,%d (max %d)'):format(column_index,pane_index, sx,sy, pane.top, pane.screen_top1.line, pane.screen_top1.pos, #pane.lines))
if sy < Display_settings.y then
pane.top = Margin_above
else
pane.top = sy - Display_settings.y + Margin_above
end
pane.top = pane.top - y_offset