diff options
author | 2019-03-14 17:58:52 +0000 | |
---|---|---|
committer | 2019-03-14 17:58:52 +0000 | |
commit | d675cb7b83a75cd8603a993a68d01bba50d33a9c (patch) | |
tree | 19cb7528d060f847a9a8af27691fbaa65ae6c666 /usr.bin/tmux/tty.c | |
parent | Cleanup and bugfix: (diff) | |
download | wireguard-openbsd-d675cb7b83a75cd8603a993a68d01bba50d33a9c.tar.xz wireguard-openbsd-d675cb7b83a75cd8603a993a68d01bba50d33a9c.zip |
Fix ED1 (clear end of screen), reported by Marc Reisner.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r-- | usr.bin/tmux/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <nicholas.marriott@gmail.com> @@ -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); |