about summary refs log tree commit diff
path: root/Src/Zle/zle.h
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2017-06-01 14:47:45 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2017-06-01 14:47:45 -0700
commit3ba5e6b909f3dbba6ae4bedb7f1a09ecfdead4eb (patch)
treecb0094fa05699b57e45afc46239d5c93a5a820f2 /Src/Zle/zle.h
parent281e4017d7588594a01f784deb0ffe1dbe9ef118 (diff)
parenta6135f6114697c7755590b26062668d18f267d2b (diff)
downloadzsh-schaefer/badarrays.tar.gz
zsh-schaefer/badarrays.tar.xz
zsh-schaefer/badarrays.zip
Merge branch 'master' into schaefer/badarrays schaefer/badarrays
Diffstat (limited to 'Src/Zle/zle.h')
-rw-r--r--Src/Zle/zle.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Src/Zle/zle.h b/Src/Zle/zle.h
index 8f92e5611..07b310180 100644
--- a/Src/Zle/zle.h
+++ b/Src/Zle/zle.h
@@ -230,6 +230,13 @@ struct thingy {
 /* DISABLED is (1<<0) */
 #define TH_IMMORTAL	(1<<1)    /* can't refer to a different widget */
 
+/*
+ * Check if bindk refers to named thingy (a set of bare characters),
+ * also checking the special .thingy widget.
+ */
+#define IS_THINGY(bindk, name)				\
+    ((bindk) == t_ ## name || (bindk) == t_D ## name)
+
 /* command modifier prefixes */
 
 struct modifier {