Fix the slightly broken prompt test.

This commit is contained in:
Eric S. Raymond 2017-05-24 00:28:38 -04:00
parent 484ca4e9fd
commit 2bc887c84e

2
misc.c
View file

@ -886,7 +886,7 @@ long I, VAL;
if(MAP2[1] == 0)MPINIT();
if (!oldstyle && isatty(0) && !SETUP)
if (!oldstyle && SETUP)
fputs("> ", stdout);
IGNORE(fgets(INLINE+1,sizeof(INLINE)-1,OPENED));
if (feof(OPENED)) {