aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-05-22 20:59:12 +0000
committerTiago Cunha <tcunha@gmx.com>2012-05-22 20:59:12 +0000
commit49b2a255b6a596f738d867ad721c476cb0174910 (patch)
tree2c0c30d6f6eda114d0db52794287349b7202f4c0
parentd9cb07df3b6dd1ddf299b2d4bc1438990e0eb54c (diff)
downloadrtmux-49b2a255b6a596f738d867ad721c476cb0174910.tar.gz
rtmux-49b2a255b6a596f738d867ad721c476cb0174910.tar.bz2
rtmux-49b2a255b6a596f738d867ad721c476cb0174910.zip
Sync OpenBSD patchset 1117:
Use tty_pane_full_width macro in some more places.
-rw-r--r--tty.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tty.c b/tty.c
index ffa23097..49c93e06 100644
--- a/tty.c
+++ b/tty.c
@@ -740,9 +740,8 @@ void
tty_cmd_insertcharacter(struct tty *tty, const struct tty_ctx *ctx)
{
struct window_pane *wp = ctx->wp;
- struct screen *s = wp->screen;
- if (ctx->xoff != 0 || screen_size_x(s) < tty->sx) {
+ if (!tty_pane_full_width(tty, ctx)) {
tty_draw_line(tty, wp->screen, ctx->ocy, ctx->xoff, ctx->yoff);
return;
}
@@ -762,9 +761,8 @@ void
tty_cmd_deletecharacter(struct tty *tty, const struct tty_ctx *ctx)
{
struct window_pane *wp = ctx->wp;
- struct screen *s = wp->screen;
- if (ctx->xoff != 0 || screen_size_x(s) < tty->sx ||
+ if (!tty_pane_full_width(tty, ctx) ||
(!tty_term_has(tty->term, TTYC_DCH) &&
!tty_term_has(tty->term, TTYC_DCH1))) {
tty_draw_line(tty, wp->screen, ctx->ocy, ctx->xoff, ctx->yoff);