From bd70d684fcf40ff1fba07ec69bd08e1ce40cbd2f Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 12 May 2008 13:50:42 +0000 Subject: 25002: only ZLE should update attributes resulting from prompt expansion --- Src/utils.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Src/utils.c') diff --git a/Src/utils.c b/Src/utils.c index 30162a71e..d3319f0a9 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -1176,7 +1176,7 @@ preprompt(void) char *str; int percents = opts[PROMPTPERCENT]; opts[PROMPTPERCENT] = 1; - str = promptexpand("%B%S%#%s%b", 0, NULL, NULL); + str = promptexpand("%B%S%#%s%b", 0, NULL, NULL, NULL); opts[PROMPTPERCENT] = percents; fprintf(shout, "%s%*s\r", str, (int)columns - 1 - !hasxn, ""); free(str); @@ -1341,7 +1341,8 @@ printprompt4(void) opts[XTRACE] = 0; unmetafy(s, &l); - s = unmetafy(promptexpand(metafy(s, l, META_NOALLOC), 0, NULL, NULL), &l); + s = unmetafy(promptexpand(metafy(s, l, META_NOALLOC), + 0, NULL, NULL, NULL), &l); opts[XTRACE] = t; fprintf(xtrerr, "%s", s); @@ -2310,7 +2311,7 @@ spckword(char **s, int hist, int cmd, int ask) x = 'n'; } else if (shout) { char *pptbuf; - pptbuf = promptexpand(sprompt, 0, best, guess); + pptbuf = promptexpand(sprompt, 0, best, guess, NULL); zputs(pptbuf, shout); free(pptbuf); fflush(shout); -- cgit 1.4.1