summaryrefslogtreecommitdiffstats
path: root/st.h
diff options
context:
space:
mode:
authorDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2022-12-31 16:35:12 -0500
committerDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2022-12-31 16:35:12 -0500
commit8029cd7933b4904c4bb0f13012515e9c9c2ab435 (patch)
treefb832cae42ef2b1e347f110bef176e413011216c /st.h
parent7c6ef5232de8d31a10e593882c29189c05296541 (diff)
downloadst-8029cd7933b4904c4bb0f13012515e9c9c2ab435.tar.gz
Added 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 808f5f7..ae41368 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)