JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Fix blink mode check
authorMichael Forney <mforney@mforney.org>
Thu, 25 Jul 2013 23:24:16 +0000 (16:24 -0700)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Mon, 5 Aug 2013 09:45:52 +0000 (11:45 +0200)
ATTR_BLINK is an attribute for a Glyph and will not be set in term.mode.

st.c

diff --git a/st.c b/st.c
index 6756f76..b63d865 100644 (file)
--- a/st.c
+++ b/st.c
@@ -3606,8 +3606,8 @@ run(void) {
                        ttyread();
                        if(blinktimeout) {
                                blinkset = tattrset(ATTR_BLINK);
-                               if(!blinkset && term.mode & ATTR_BLINK)
-                                       term.mode &= ~(MODE_BLINK);
+                               if(!blinkset)
+                                       MODBIT(term.mode, 0, MODE_BLINK);
                        }
                }