about summary refs log tree commit diff
path: root/Src/Zle/zle_main.c
diff options
context:
space:
mode:
authorGeoff Wing <gcw@users.sourceforge.net>2007-10-19 01:33:09 +0000
committerGeoff Wing <gcw@users.sourceforge.net>2007-10-19 01:33:09 +0000
commit29a869d5a8bc0efb5245310d2f12a418bbf64f19 (patch)
tree939b24f6a01396fbec878860e51b93962f41d6f8 /Src/Zle/zle_main.c
parent8eeb27e0e6abfe90d22c8a0238aa6573bba1a1e3 (diff)
downloadzsh-29a869d5a8bc0efb5245310d2f12a418bbf64f19.tar.gz
zsh-29a869d5a8bc0efb5245310d2f12a418bbf64f19.tar.xz
zsh-29a869d5a8bc0efb5245310d2f12a418bbf64f19.zip
23924: Improve synchronising of character attributes with other
output routines
Diffstat (limited to 'Src/Zle/zle_main.c')
-rw-r--r--Src/Zle/zle_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index 463ff157f..a45e63617 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -1678,8 +1678,10 @@ reexpandprompt(void)
     if (!reexpanding++) {
 	free(lpromptbuf);
 	lpromptbuf = promptexpand(raw_lp ? *raw_lp : NULL, 1, NULL, NULL);
+	pmpt_attr = txtchange;
 	free(rpromptbuf);
 	rpromptbuf = promptexpand(raw_rp ? *raw_rp : NULL, 1, NULL, NULL);
+	rpmpt_attr = txtchange;
     }
     reexpanding--;
 }