about summary refs log tree commit diff
path: root/Src/zsh.h
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/zsh.h
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/zsh.h')
-rw-r--r--Src/zsh.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/zsh.h b/Src/zsh.h
index eee31dad1..36fddd000 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -2567,7 +2567,7 @@ struct ttyinfo {
 
 #define txtchangeisset(T,X)	((T) & (X))
 #define txtchangeget(T,A)	(((T) & A ## _MASK) >> A ## _SHIFT)
-#define txtchangeset(T, X, Y)	((void)(T && (*T |= (X), *T &= ~(Y))))
+#define txtchangeset(T, X, Y)	((void)(T && (*T &= ~(Y), *T |= (X))))
 
 /*
  * For outputting sequences to change colour: specify foreground