=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/echo.c,v retrieving revision 1.33 retrieving revision 1.34 diff -u -r1.33 -r1.34 --- src/usr.bin/mg/echo.c 2005/05/28 00:41:13 1.33 +++ src/usr.bin/mg/echo.c 2005/05/31 20:38:59 1.34 @@ -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 @@ /* 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);