diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-14 16:53:04 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-14 16:53:04 +0100 |
commit | bef70132ac23e5d13fd6db3d3f5f8ebdf486c1f3 (patch) | |
tree | c1e56b441eb5617390a54d038d0a3f5afa815997 /screen-redraw.c | |
parent | 31621036ad38ef3a2d88da838eb021430ea3c944 (diff) | |
download | rtmux-bef70132ac23e5d13fd6db3d3f5f8ebdf486c1f3.tar.gz rtmux-bef70132ac23e5d13fd6db3d3f5f8ebdf486c1f3.tar.bz2 rtmux-bef70132ac23e5d13fd6db3d3f5f8ebdf486c1f3.zip |
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.
Diffstat (limited to 'screen-redraw.c')
-rw-r--r-- | screen-redraw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/screen-redraw.c b/screen-redraw.c index 3fa537a4..ae9d8a90 100644 --- a/screen-redraw.c +++ b/screen-redraw.c @@ -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)) |