ed

simple ed
git clone git://git.2f30.org/ed
Log | Files | Refs | LICENSE

commit 3d389fa213717bacb55df775d51a5364646451cb
parent f7735113b25acaa45deff14ee7d5fb9340f5c05b
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu,  3 Dec 2015 22:03:45 +0100

Add explicit check against nested global commands

This error was catched but printed a generic
"unknow error".

Diffstat:
Med.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/ed.c b/ed.c @@ -736,6 +736,11 @@ docmd() chkprint(1); deflines(curln, curln); goto print; + case 'g': + case 'G': + case 'v': + case 'V': + error("cannot nest global commands"); case 'H': optverbose ^= 1; case 'h':