diff options
author | Saumit Dinesan <79687674+Saumit-D@users.noreply.github.com> | 2021-10-26 13:34:14 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-26 13:34:14 +0530 |
commit | 82efcbc5254ad62c7094ed80d6f3177dd5788e16 (patch) | |
tree | a2a1d7444a61f5db1313eb4b4b24053f50ec5376 /st.h | |
parent | 7bba86e5dca91231351ec33479dfe4fe6339cc3e (diff) |
Update st.h
Diffstat (limited to 'st.h')
-rw-r--r-- | st.h | 6 |
1 files changed, 5 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, }; @@ -81,6 +83,8 @@ void die(const char *, ...); void redraw(void); void draw(void); +void kscrolldown(const Arg *); +void kscrollup(const Arg *); void printscreen(const Arg *); void printsel(const Arg *); void sendbreak(const Arg *); |