Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit refresh only on SIGCONT not SIGWINCH from Edward...
details: https://anonhg.NetBSD.org/src/rev/07ece4dfd14e
branches: trunk
changeset: 756538:07ece4dfd14e
user: christos <christos%NetBSD.org@localhost>
date: Wed Jul 21 18:18:52 2010 +0000
description:
refresh only on SIGCONT not SIGWINCH from Edward Sheldrake
diffstat:
lib/libedit/read.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 1cb375ecd858 -r 07ece4dfd14e lib/libedit/read.c
--- a/lib/libedit/read.c Wed Jul 21 17:52:09 2010 +0000
+++ b/lib/libedit/read.c Wed Jul 21 18:18:52 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: read.c,v 1.56 2010/07/19 17:18:13 christos Exp $ */
+/* $NetBSD: read.c,v 1.57 2010/07/21 18:18:52 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)read.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: read.c,v 1.56 2010/07/19 17:18:13 christos Exp $");
+__RCSID("$NetBSD: read.c,v 1.57 2010/07/21 18:18:52 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -323,9 +323,10 @@
while ((num_read = read(el->el_infd, cbuf + cbp, 1)) == -1) {
switch (el->el_signal->sig_no) {
case SIGCONT:
+ el_set(el, EL_REFRESH);
+ /*FALLTHROUGH*/
case SIGWINCH:
sig_set(el);
- el_set(el, EL_REFRESH);
goto again;
default:
break;
Home |
Main Index |
Thread Index |
Old Index