From a8699a58d8632f21e897ea5c4900a15483a9a8ca Mon Sep 17 00:00:00 2001 From: Toby Goodwin Date: Tue, 2 Sep 2014 08:01:39 +0100 Subject: release: rc-1.7.2 --- heredoc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'heredoc.c') diff --git a/heredoc.c b/heredoc.c index 922fc12..348dc84 100644 --- a/heredoc.c +++ b/heredoc.c @@ -2,6 +2,8 @@ #include "rc.h" +#include "input.h" + struct Hq { Node *doc; char *name; @@ -40,7 +42,7 @@ static char *readheredoc(char *eof) { bufend = &buf[bufsize]; \ } for (;;) { - print_prompt2(); + nextline(); for (s = (unsigned char *) eof; (c = gchar()) == *s; s++) ; if (*s == '\0' && (c == '\n' || c == EOF)) { @@ -142,7 +144,7 @@ extern int qdoc(Node *name, Node *n) { Hq *new, **prev; if (name->type != nWord) { yyerror("eof-marker not a single literal word"); - flushu(); + skiptonl(); return FALSE; } for (prev = &hq; (new = *prev) != NULL; prev = &new->n) -- cgit v1.2.3