Module Name: src
Committed By: christos
Date: Tue Jul 26 21:03:17 UTC 2011
Modified Files:
src/lib/libedit: el.c
Log Message:
don't stop reading after empty lines from: Nirbhay Choubey
To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/lib/libedit/el.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/el.c
diff -u src/lib/libedit/el.c:1.62 src/lib/libedit/el.c:1.63
--- src/lib/libedit/el.c:1.62 Sun Mar 20 08:36:14 2011
+++ src/lib/libedit/el.c Tue Jul 26 17:03:17 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: el.c,v 1.62 2011/03/20 12:36:14 bouyer Exp $ */
+/* $NetBSD: el.c,v 1.63 2011/07/26 21:03:17 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)el.c 8.2 (Berkeley) 1/3/94";
#else
-__RCSID("$NetBSD: el.c,v 1.62 2011/03/20 12:36:14 bouyer Exp $");
+__RCSID("$NetBSD: el.c,v 1.63 2011/07/26 21:03:17 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -540,6 +540,8 @@
return (-1);
while ((ptr = fgetln(fp, &len)) != NULL) {
+ if (*ptr == '\n')
+ continue; /* Empty line. */
dptr = ct_decode_string(ptr, &el->el_scratch);
if (!dptr)
continue;