summary refs log tree commit diff
path: root/Src/Zle/zle_refresh.c
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2016-07-08 22:28:15 +0200
committerOliver Kiddle <opk@zsh.org>2016-07-08 22:28:15 +0200
commite87aa8941fd7e13b039bf4d1664c6dc39a09313a (patch)
tree780ddf0747eb19a83830f84172008f46e1eee58d /Src/Zle/zle_refresh.c
parentfc286168edac8c0b5fb9e8ec6226d4c77bcde79f (diff)
downloadzsh-e87aa8941fd7e13b039bf4d1664c6dc39a09313a.tar.gz
zsh-e87aa8941fd7e13b039bf4d1664c6dc39a09313a.tar.xz
zsh-e87aa8941fd7e13b039bf4d1664c6dc39a09313a.zip
38809: fix tracking of colour attributes and restore them when turning bold off
Diffstat (limited to 'Src/Zle/zle_refresh.c')
-rw-r--r--Src/Zle/zle_refresh.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index aca676a1c..e78f1e562 100644
--- a/Src/Zle/zle_refresh.c
+++ b/Src/Zle/zle_refresh.c
@@ -1143,8 +1143,7 @@ zrefresh(void)
 	tsetcap(TCALLATTRSOFF, 0);
 	tsetcap(TCSTANDOUTEND, 0);
 	tsetcap(TCUNDERLINEEND, 0);
-	/* cheat on attribute unset */
-	txtunset(TXTBOLDFACE|TXTSTANDOUT|TXTUNDERLINE);
+	txtattrmask = 0;
 
 	if (trashedzle && !clearflag)
 	    reexpandprompt();