ed: fix cmd e/E
Ensure we have a filename before taking further action.
This commit is contained in:
parent
d84070398b
commit
c5b36e1760
2
ed.c
2
ed.c
|
@ -1191,8 +1191,8 @@ repeat:
|
||||||
goto unexpected;
|
goto unexpected;
|
||||||
if (modflag)
|
if (modflag)
|
||||||
goto modified;
|
goto modified;
|
||||||
setscratch();
|
|
||||||
strcpy(savfname, getfname());
|
strcpy(savfname, getfname());
|
||||||
|
setscratch();
|
||||||
deflines(curln, curln);
|
deflines(curln, curln);
|
||||||
doread(savfname);
|
doread(savfname);
|
||||||
clearundo();
|
clearundo();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user