summaryrefslogtreecommitdiff
path: root/usr.bin/mg/echo.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/mg/echo.c')
-rw-r--r--usr.bin/mg/echo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/echo.c b/usr.bin/mg/echo.c
index 206f3d90619..3f855bf215a 100644
--- a/usr.bin/mg/echo.c
+++ b/usr.bin/mg/echo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: echo.c,v 1.33 2005/05/28 00:41:13 cloder Exp $ */
+/* $OpenBSD: echo.c,v 1.34 2005/05/31 20:38:59 kjell Exp $ */
/*
* Echo line reading and writing.
*
@@ -203,7 +203,7 @@ veread(const char *fp, char *buf, size_t nbuf, int flag, va_list ap)
/* FALLTHROUGH */
case CCHR('M'): /* return, done */
/* if there's nothing in the minibuffer, quit */
- if (cpos == 0) {
+ if (cpos == 0 && !(flag & EFNUL)) {
(void)ctrlg(FFRAND, 0);
ttflush();
return (NULL);