summaryrefslogtreecommitdiff
path: root/st.h
diff options
context:
space:
mode:
authorCraig Jennings <craigmartinjennings@gmail.com>2023-07-23 15:32:13 -0500
committerCraig Jennings <craigmartinjennings@gmail.com>2023-07-23 15:32:13 -0500
commit0849615b3fdd9d174c0168e5f7e9ae9283d61465 (patch)
treec3dcd4737a4766dd56fb68f58707e109f0237733 /st.h
parenta43109a9a14548c20e0aa87a55a3b685d4ed35e0 (diff)
ligatures patch applied
Diffstat (limited to 'st.h')
-rw-r--r--st.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/st.h b/st.h
index eda7eeb..d16f417 100644
--- a/st.h
+++ b/st.h
@@ -11,7 +11,8 @@
#define DIVCEIL(n, d) (((n) + ((d) - 1)) / (d))
#define DEFAULT(a, b) (a) = (a) ? (a) : (b)
#define LIMIT(x, a, b) (x) = (x) < (a) ? (a) : (x) > (b) ? (b) : (x)
-#define ATTRCMP(a, b) ((a).mode != (b).mode || (a).fg != (b).fg || \
+#define ATTRCMP(a, b) (((a).mode & (~ATTR_WRAP)) != ((b).mode & (~ATTR_WRAP)) || \
+ (a).fg != (b).fg || \
(a).bg != (b).bg)
#define TIMEDIFF(t1, t2) ((t1.tv_sec-t2.tv_sec)*1000 + \
(t1.tv_nsec-t2.tv_nsec)/1E6)