From 1a949a5a813d692945bdf04b596940718518e21d Mon Sep 17 00:00:00 2001 From: nick black Date: Wed, 18 Dec 2019 15:29:24 -0500 Subject: [PATCH] account for tabletmasks --- src/lib/panelreel.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/panelreel.c b/src/lib/panelreel.c index 8c998d0b8..4aa5595c9 100644 --- a/src/lib/panelreel.c +++ b/src/lib/panelreel.c @@ -285,7 +285,11 @@ panelreel_draw_tablet(const panelreel* pr, tablet* t, int frontiery, // t, ll, cby, cbmaxy, leny, direction); if(ll != leny){ if(ll == leny - 1){ // only has one border visible (partially off-screen) - ++ll; // account for that border + if(cbdir){ + ll += !(pr->popts.tabletmask & NCBOXMASK_BOTTOM); + }else{ + ll += !(pr->popts.tabletmask & NCBOXMASK_TOP); + } wresize(fp, ll, lenx); if(direction < 0){ cliphead = true;