summaryrefslogtreecommitdiff
path: root/st.h
diff options
context:
space:
mode:
authorZachIR <zachir@librem.one>2025-07-08 21:08:52 -0500
committerZachIR <zachir@librem.one>2025-07-08 21:08:52 -0500
commit1f5344705216be2234d29d9b0ea675577988caa4 (patch)
tree196ee0a839d0b807479b8b4b549f16ccfab260ef /st.h
parentaf79d1853cf8d501bbdf14b6d4b2df81bdaf1526 (diff)
Apply ligatures patch
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 78762a2..01eea49 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)