sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit c5b36e17600920ac1a5d519620be5b38f8f9ed39
parent d84070398b3a53cb392cf0ae2c0114abe0de0126
Author: Quentin Rameau <quinq@fifth.space>
Date:   Tue, 15 Dec 2015 15:13:21 +0100

ed: fix cmd e/E

Ensure we have a filename before taking further action.

Diffstat:
Med.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ed.c b/ed.c @@ -1191,8 +1191,8 @@ repeat: goto unexpected; if (modflag) goto modified; - setscratch(); strcpy(savfname, getfname()); + setscratch(); deflines(curln, curln); doread(savfname); clearundo();