summary refs log tree commit diff
path: root/Src/zsh.h
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-05-06 09:23:06 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-05-06 09:23:06 +0000
commit88126c01103f8dc591e1a4ab15392fddef0b62d0 (patch)
treebed2ed5f700fde590fe487808d247fd7bcd25ba0 /Src/zsh.h
parent2b2cb523eb4492dc2f1d3b4b0cbff2c76815e60b (diff)
downloadzsh-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.h2
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.