diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-05-06 09:23:06 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-05-06 09:23:06 +0000 |
commit | 88126c01103f8dc591e1a4ab15392fddef0b62d0 (patch) | |
tree | bed2ed5f700fde590fe487808d247fd7bcd25ba0 /Src/zsh.h | |
parent | 2b2cb523eb4492dc2f1d3b4b0cbff2c76815e60b (diff) | |
download | zsh-88126c01103f8dc591e1a4ab15392fddef0b62d0.tar.gz zsh-88126c01103f8dc591e1a4ab15392fddef0b62d0.tar.xz zsh-88126c01103f8dc591e1a4ab15392fddef0b62d0.zip |
24932: try to fix up code that regularizes attributes after right prompt
Diffstat (limited to 'Src/zsh.h')
-rw-r--r-- | Src/zsh.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/zsh.h b/Src/zsh.h index d83bdd2bb..f3ccd636b 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -1983,6 +1983,8 @@ struct ttyinfo { #define TXT_ATTR_OFF_ON_SHIFT 6 #define TXT_ATTR_OFF_FROM_ON(attr) \ (((attr) & TXT_ATTR_ON_MASK) << TXT_ATTR_OFF_ON_SHIFT) +#define TXT_ATTR_ON_FROM_OFF(attr) \ + (((attr) & TXT_ATTR_OFF_MASK) >> TXT_ATTR_OFF_ON_SHIFT) /* * Indicates to zle_refresh.c that the character entry is an * index into the list of multiword symbols. |