Module Name: src Committed By: christos Date: Wed Jul 21 18:18:53 UTC 2010
Modified Files: src/lib/libedit: read.c Log Message: refresh only on SIGCONT not SIGWINCH from Edward Sheldrake To generate a diff of this commit: cvs rdiff -u -r1.56 -r1.57 src/lib/libedit/read.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libedit/read.c diff -u src/lib/libedit/read.c:1.56 src/lib/libedit/read.c:1.57 --- src/lib/libedit/read.c:1.56 Mon Jul 19 13:18:13 2010 +++ src/lib/libedit/read.c Wed Jul 21 14:18:52 2010 @@ -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;