diff options
| author | Shivesh Mandalia <mail@shivesh.org> | 2021-09-22 20:30:34 +0100 |
|---|---|---|
| committer | Shivesh Mandalia <mail@shivesh.org> | 2021-09-22 20:30:34 +0100 |
| commit | 3964320a731def870e1c28bc8bae05310decc949 (patch) | |
| tree | fdd660d368bafa25e6084453866e3032b90da78d /st.h | |
| parent | 2467e2824fb6a2bc2bf76883f8a2c7561d7af4a4 (diff) | |
| download | st-3964320a731def870e1c28bc8bae05310decc949.tar.gz st-3964320a731def870e1c28bc8bae05310decc949.zip | |
Proper drawing of ligatures
- Patch st-ligatures-scrollback-0.8.4
<https://st.suckless.org/patches/ligatures/>
Diffstat (limited to 'st.h')
| -rw-r--r-- | st.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) & (~ATTR_LIGA)) != ((b).mode & (~ATTR_WRAP) & (~ATTR_LIGA)) || \ + (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) @@ -33,6 +34,7 @@ enum glyph_attribute { ATTR_WRAP = 1 << 8, ATTR_WIDE = 1 << 9, ATTR_WDUMMY = 1 << 10, + ATTR_LIGA = 1 << 11, ATTR_BOLD_FAINT = ATTR_BOLD | ATTR_FAINT, }; |
