Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libedit term_rebuffer_display(): set el->el_term.t_size....



details:   https://anonhg.NetBSD.org/src/rev/84816bc8d5b7
branches:  trunk
changeset: 502032:84816bc8d5b7
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Wed Jan 10 22:42:56 2001 +0000

description:
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.

diffstat:

 lib/libedit/term.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 83b1d7467fbd -r 84816bc8d5b7 lib/libedit/term.c
--- a/lib/libedit/term.c        Wed Jan 10 21:41:36 2001 +0000
+++ b/lib/libedit/term.c        Wed Jan 10 22:42:56 2001 +0000
@@ -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_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);



Home | Main Index | Thread Index | Old Index