commit 4568edf5ad83f1c2301fbbfd37255ac5d0cd61e2
parent 1cd4419d272c4bbc757650aa1b2f502f12b71441
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Thu, 10 Dec 2015 22:30:46 +0100
Do not show errors with H
H only enable/disable print message errors by
default, but it doesn't print the old message
error.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/ed.c b/ed.c
@@ -835,7 +835,11 @@ repeat:
case 'V':
error("cannot nest global commands");
case 'H':
+ if (nlines > 0)
+ goto unexpected;
+ chkprint(0);
optverbose ^= 1;
+ break;
case 'h':
if (nlines > 0)
goto unexpected;