-/* $OpenBSD: main.c,v 1.44 1999/12/08 12:57:06 itojun Exp $ */
+/* $OpenBSD: main.c,v 1.45 2000/03/22 15:38:23 markus Exp $ */
/* $NetBSD: main.c,v 1.24 1997/08/18 10:20:26 lukem Exp $ */
/*
#if 0
static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 10/9/94";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.44 1999/12/08 12:57:06 itojun Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.45 2000/03/22 15:38:23 markus Exp $";
#endif
#endif /* not lint */
* XXX - bogus commands with a colon in
* them will not elicit an error.
*/
- if (el_parse(el, margc, margv) != 0)
+ if (editing &&
+ el_parse(el, margc, margv) != 0)
#endif /* !SMALL */
fputs("?Invalid command.\n", ttyout);
continue;
-/* $OpenBSD: ul.c,v 1.4 1997/01/15 23:43:27 millert Exp $ */
+/* $OpenBSD: ul.c,v 1.5 2000/03/22 15:38:23 markus Exp $ */
/* $NetBSD: ul.c,v 1.3 1994/12/07 00:28:24 jtc Exp $ */
/*
#if 0
static char sccsid[] = "@(#)ul.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: ul.c,v 1.4 1997/01/15 23:43:27 millert Exp $";
+static char rcsid[] = "$OpenBSD: ul.c,v 1.5 2000/03/22 15:38:23 markus Exp $";
#endif /* not lint */
#include <stdio.h>
{
register c;
- while ((c = getc(f)) != EOF) switch(c) {
+ while ((c = getc(f)) != EOF && col < MAXBUF) switch(c) {
case '\b':
if (col > 0)