diff options
author | Thomas Adam <thomas@xteddy.org> | 2017-05-13 10:01:16 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2017-05-13 10:01:16 +0100 |
commit | 58f8421eacc6e7233849b589fe738d0a4011ba2c (patch) | |
tree | a24124d9e74b91daf3c942f2fbe8a2c5134acdc2 /tty.c | |
parent | ea190d862a7da1ee21e420015790b65099f0cfe7 (diff) | |
parent | 7a4c66b7f5710e92f4af2bdfdb3b88bd64306320 (diff) | |
download | rtmux-58f8421eacc6e7233849b589fe738d0a4011ba2c.tar.gz rtmux-58f8421eacc6e7233849b589fe738d0a4011ba2c.tar.bz2 rtmux-58f8421eacc6e7233849b589fe738d0a4011ba2c.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -838,7 +838,7 @@ tty_clear_area(struct tty *tty, const struct window_pane *wp, u_int py, tty_term_has(tty->term, TTYC_INDN)) { tty_region(tty, py, py + ny - 1); tty_margin_off(tty); - tty_putcode1(tty, TTYC_INDN, ny); + tty_putcode1(tty, TTYC_INDN, ny - 1); return; } @@ -853,7 +853,7 @@ tty_clear_area(struct tty *tty, const struct window_pane *wp, u_int py, tty_term_has(tty->term, TTYC_INDN)) { tty_region(tty, py, py + ny - 1); tty_margin(tty, px, px + nx - 1); - tty_putcode1(tty, TTYC_INDN, ny); + tty_putcode1(tty, TTYC_INDN, ny - 1); return; } } @@ -1145,11 +1145,10 @@ void tty_cmd_clearstartofline(struct tty *tty, const struct tty_ctx *ctx) { struct window_pane *wp = ctx->wp; - u_int nx, py = ctx->yoff + ctx->ocy; + u_int py = ctx->yoff + ctx->ocy; tty_default_attributes(tty, wp, ctx->bg); - nx = screen_size_x(wp->screen) - ctx->ocx; tty_clear_line(tty, wp, py, ctx->xoff, ctx->ocx + 1, ctx->bg); } |