Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit Add a comment explaining why we don't use DO her...
details: https://anonhg.NetBSD.org/src/rev/e54de18c551e
branches: trunk
changeset: 962152:e54de18c551e
user: christos <christos%NetBSD.org@localhost>
date: Sun Jun 30 13:30:15 2019 +0000
description:
Add a comment explaining why we don't use DO here. Correct the attribution
on the previous patch: The patch was from Jordan Lewis and the report from
Raphael Poss.
diffstat:
lib/libedit/terminal.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 67049a226a12 -r e54de18c551e lib/libedit/terminal.c
--- a/lib/libedit/terminal.c Sun Jun 30 11:38:16 2019 +0000
+++ b/lib/libedit/terminal.c Sun Jun 30 13:30:15 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: terminal.c,v 1.37 2019/06/29 21:35:09 christos Exp $ */
+/* $NetBSD: terminal.c,v 1.38 2019/06/30 13:30:15 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)term.c 8.2 (Berkeley) 4/30/95";
#else
-__RCSID("$NetBSD: terminal.c,v 1.37 2019/06/29 21:35:09 christos Exp $");
+__RCSID("$NetBSD: terminal.c,v 1.38 2019/06/30 13:30:15 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -509,6 +509,10 @@
return;
}
if ((del = where - el->el_cursor.v) > 0) {
+ /*
+ * We don't use DO here because some terminals are buggy
+ * if the destination is beyond bottom of the screen.
+ */
for (; del > 0; del--)
terminal__putc(el, '\n');
/* because the \n will become \r\n */
Home |
Main Index |
Thread Index |
Old Index