diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-05-12 13:50:42 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-05-12 13:50:42 +0000 |
commit | bd70d684fcf40ff1fba07ec69bd08e1ce40cbd2f (patch) | |
tree | 3392bb954086841c7351e06b45e82594342f4e31 /Src/zsh.h | |
parent | 58580d31f593021e2ed4bfad8362e3b01bf396f3 (diff) | |
download | zsh-bd70d684fcf40ff1fba07ec69bd08e1ce40cbd2f.tar.gz zsh-bd70d684fcf40ff1fba07ec69bd08e1ce40cbd2f.tar.xz zsh-bd70d684fcf40ff1fba07ec69bd08e1ce40cbd2f.zip |
25002: only ZLE should update attributes resulting from prompt expansion
Diffstat (limited to 'Src/zsh.h')
-rw-r--r-- | Src/zsh.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/zsh.h b/Src/zsh.h index 7617e2281..5618174a8 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -2043,7 +2043,7 @@ struct ttyinfo { #define txtchangeisset(T,X) ((T) & (X)) #define txtchangeget(T,A) (((T) & A ## _MASK) >> A ## _SHIFT) -#define txtchangeset(X, Y) (txtchange |= (X), txtchange &= ~(Y)) +#define txtchangeset(T, X, Y) ((void)(T && (*T |= (X), *T &= ~(Y)))) /* * For outputting sequences to change colour: specify foreground |