aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authornicm <nicm>2019-03-14 17:58:52 +0000
committernicm <nicm>2019-03-14 17:58:52 +0000
commit9bd4b96766cbbdc8f8e166baf726d69e8a6024ff (patch)
tree944a615743e8c42d902cbcf3da89e830aecbc3cf /tty.c
parent0425e3178d2f7cc0d33cd9aa8ed74b096b31727e (diff)
downloadrtmux-9bd4b96766cbbdc8f8e166baf726d69e8a6024ff.tar.gz
rtmux-9bd4b96766cbbdc8f8e166baf726d69e8a6024ff.tar.bz2
rtmux-9bd4b96766cbbdc8f8e166baf726d69e8a6024ff.zip
Fix ED1 (clear end of screen), reported by Marc Reisner.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tty.c b/tty.c
index 5db86580..855f8e6a 100644
--- a/tty.c
+++ b/tty.c
@@ -1672,7 +1672,7 @@ tty_cmd_clearstartofscreen(struct tty *tty, const struct tty_ctx *ctx)
px = 0;
nx = screen_size_x(wp->screen);
py = 0;
- ny = ctx->ocy - 1;
+ ny = ctx->ocy;
tty_clear_pane_area(tty, ctx, py, ny, px, nx, ctx->bg);