mirror of
https://github.com/tmux/tmux.git
synced 2024-12-14 10:58:48 +00:00
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.
This commit is contained in:
parent
31621036ad
commit
bef70132ac
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user