From a6135f6114697c7755590b26062668d18f267d2b Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 1 Jun 2017 17:56:14 +0100 Subject: 41191: Check for immortal thingies when checking for specific thingies --- Src/Zle/zle.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Src/Zle/zle.h') 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 { -- cgit 1.4.1