From d675cb7b83a75cd8603a993a68d01bba50d33a9c Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 14 Mar 2019 17:58:52 +0000 Subject: Fix ED1 (clear end of screen), reported by Marc Reisner. --- usr.bin/tmux/tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/tmux/tty.c') diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index 4868b4ceb69..90e73dfae7f 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.318 2019/03/14 09:53:52 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.319 2019/03/14 17:58:52 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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); -- cgit v1.2.3-59-g8ed1b