Check if outside the window before checking if on the border so that cells that

are outside in one direction but not the other are not given the wrong type.
pull/2219/head
Nicholas Marriott 2020-05-14 16:53:04 +01:00
parent 31621036ad
commit bef70132ac
1 changed files with 4 additions and 4 deletions

View File

@ -212,14 +212,14 @@ screen_redraw_cell_border(struct client *c, u_int px, u_int py, int pane_status)
struct window *w = c->session->curw->window;
struct window_pane *wp;
/* On the window border? */
if (px == w->sx || py == w->sy)
return (1);
/* Outside the window? */
if (px > w->sx || py > w->sy)
return (0);
/* On the window border? */
if (px == w->sx || py == w->sy)
return (1);
/* Check all the panes. */
TAILQ_FOREACH(wp, &w->panes, entry) {
if (!window_pane_visible(wp))