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/loop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src/loop.c') diff --git a/Src/loop.c b/Src/loop.c index 0de963318..9533ba186 100644 --- a/Src/loop.c +++ b/Src/loop.c @@ -250,7 +250,7 @@ execselect(Estate state, UNUSED(int do_exec)) str = NULL; errflag = oef; } else { - str = promptexpand(prompt3, 0, NULL, NULL); + str = promptexpand(prompt3, 0, NULL, NULL, NULL); zputs(str, stderr); free(str); fflush(stderr); @@ -552,7 +552,7 @@ execcase(Estate state, int do_exec) next = state->pc + WC_CASE_SKIP(code); if (isset(XTRACE)) { - char *pat2, *opat; + char *opat; pat = dupstring(opat = ecrawstr(state->prog, state->pc, NULL)); singsub(&pat); -- cgit 1.4.1