1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

Fix ED1 (clear end of screen), reported by Marc Reisner.

This commit is contained in:
nicm 2019-03-14 17:58:52 +00:00
parent d0dcf7a64d
commit d675cb7b83

View File

@ -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);