diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-05-26 18:27:53 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-05-26 18:27:53 +0000 |
commit | 177b489042da7611781113f17676873f3d4a01ff (patch) | |
tree | 2d6ce5cf339fc8f4ac7de9a7ffef6cab27594070 /usr.bin/tmux/screen-redraw.c | |
parent | cd79cf4f753462ddbcba767c7b726340b63cba45 (diff) |
Always redraw overlay if it is on (so status line doesn't redraw over it).
Diffstat (limited to 'usr.bin/tmux/screen-redraw.c')
-rw-r--r-- | usr.bin/tmux/screen-redraw.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/tmux/screen-redraw.c b/usr.bin/tmux/screen-redraw.c index 92226d6b6a9..04748beaa19 100644 --- a/usr.bin/tmux/screen-redraw.c +++ b/usr.bin/tmux/screen-redraw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen-redraw.c,v 1.62 2019/05/08 18:07:12 nicm Exp $ */ +/* $OpenBSD: screen-redraw.c,v 1.63 2019/05/26 18:27:52 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -383,6 +383,9 @@ screen_redraw_update(struct client *c, int flags) if (!redraw && (~flags & CLIENT_REDRAWSTATUSALWAYS)) flags &= ~CLIENT_REDRAWSTATUS; + if (c->overlay_draw != NULL) + flags |= CLIENT_REDRAWOVERLAY; + if (options_get_number(wo, "pane-border-status") != CELL_STATUS_OFF) { redraw = 0; TAILQ_FOREACH(wp, &w->panes, entry) { @@ -458,7 +461,7 @@ screen_redraw_pane(struct client *c, struct window_pane *wp) { struct screen_redraw_ctx ctx; - if (!window_pane_visible(wp)) + if (c->overlay_draw != NULL || !window_pane_visible(wp)) return; screen_redraw_set_context(c, &ctx); |