diff options
author | Thomas Adam <thomas@xteddy.org> | 2017-04-17 10:01:13 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2017-04-17 10:01:13 +0100 |
commit | 28833efb4801aedd43f4fc119d4fe841fde848eb (patch) | |
tree | 9678d0e104544816b08bf75cbab5e28a3e575088 /tty.c | |
parent | d912687be76891cdf5d124d278bf42b0bebd3106 (diff) | |
parent | 175d1854d4b5886c5ad8a77c153ced2b8f15621a (diff) | |
download | rtmux-28833efb4801aedd43f4fc119d4fe841fde848eb.tar.gz rtmux-28833efb4801aedd43f4fc119d4fe841fde848eb.tar.bz2 rtmux-28833efb4801aedd43f4fc119d4fe841fde848eb.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -720,7 +720,8 @@ tty_draw_line(struct tty *tty, const struct window_pane *wp, tty_putcode(tty, TTYC_EL1); cleared = 1; } - tty_cursor(tty, ox, oy + py); + if (sx != 0) + tty_cursor(tty, ox, oy + py); memcpy(&last, &grid_default_cell, sizeof last); len = 0; @@ -776,7 +777,6 @@ tty_draw_line(struct tty *tty, const struct window_pane *wp, if (!cleared && sx < tty->sx) { tty_default_attributes(tty, wp, 8); - tty_cursor(tty, ox + sx, oy + py); if (sx != screen_size_x(s) && ox + screen_size_x(s) >= tty->sx && @@ -816,9 +816,7 @@ tty_write(void (*cmdfn)(struct tty *, const struct tty_ctx *), if (wp == NULL) return; - if (wp->window->flags & WINDOW_REDRAW || wp->flags & PANE_REDRAW) - return; - if (!window_pane_visible(wp) || wp->flags & PANE_DROP) + if ((wp->flags & (PANE_REDRAW|PANE_DROP)) || !window_pane_visible(wp)) return; TAILQ_FOREACH(c, &clients, entry) { |