summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-04-21 16:58:03 +0200
committerTyge Løvset <[email protected]>2022-04-21 16:58:03 +0200
commit0e8bca60bd74ff7c6dfca88aca824f8d5907a992 (patch)
tree0d56a7116c1ccb81a95c476601cccf313ce6ee99
parentd122c77b5a755cd5b3211c26346a84bb2b27cdce (diff)
downloadSTC-modified-0e8bca60bd74ff7c6dfca88aca824f8d5907a992.tar.gz
STC-modified-0e8bca60bd74ff7c6dfca88aca824f8d5907a992.zip
Fix for i_key_bind hash and eq functions.
-rw-r--r--include/stc/template.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/include/stc/template.h b/include/stc/template.h
index 6f784c35..f614cd58 100644
--- a/include/stc/template.h
+++ b/include/stc/template.h
@@ -123,13 +123,11 @@
#ifndef i_cmp
#define i_cmp c_paste(i_keyraw, _cmp)
#endif
- #if defined _i_ishash
- #ifndef i_eq
- #define i_eq c_paste(i_keyraw, _eq)
- #endif
- #if !defined i_hash
- #define i_hash c_paste(i_keyraw, _hash)
- #endif
+ #if !defined i_eq && (defined _i_ishash || c_option(c_eq))
+ #define i_eq c_paste(i_keyraw, _eq)
+ #endif
+ #if !defined i_hash && (defined _i_ishash || c_option(c_hash))
+ #define i_hash c_paste(i_keyraw, _hash)
#endif
#endif