From d64e200968df2a3b8cd111063ff5cfa848d9593a Mon Sep 17 00:00:00 2001 From: jdolecek Date: Wed, 10 Jan 2001 22:42:56 +0000 Subject: [PATCH] term_rebuffer_display(): set el->el_term.t_size.v to terminals height, not a magic value, so that e.g. el_display[] and el_vdisplay[] are not bigger than needed. Discussed with Christos Zoulas. --- lib/libedit/term.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libedit/term.c b/lib/libedit/term.c index 81e834c0097b..d4f5d9f47f78 100644 --- a/lib/libedit/term.c +++ b/lib/libedit/term.c @@ -1,4 +1,4 @@ -/* $NetBSD: term.c,v 1.30 2001/01/09 19:43:15 jdolecek Exp $ */ +/* $NetBSD: term.c,v 1.31 2001/01/10 22:42:56 jdolecek Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)term.c 8.2 (Berkeley) 4/30/95"; #else -__RCSID("$NetBSD: term.c,v 1.30 2001/01/09 19:43:15 jdolecek Exp $"); +__RCSID("$NetBSD: term.c,v 1.31 2001/01/10 22:42:56 jdolecek Exp $"); #endif #endif /* not lint && not SCCSID */ @@ -440,7 +440,7 @@ term_rebuffer_display(EditLine *el) term_free_display(el); c->h = Val(T_co); - c->v = (EL_BUFSIZ * 4) / c->h + 1; + c->v = Val(T_li); if (term_alloc_display(el) == -1) return (-1);