[hackers] [st] Fix blink mode check || Michael Forney

From: <git_AT_suckless.org>
Date: Mon, 05 Aug 2013 11:47:45 +0200

commit 86c03ddc82d2f9f84f22f79741e13ade0e0b8cd1
Author: Michael Forney <mforney_AT_mforney.org>
Date: Thu Jul 25 16:24:16 2013 -0700

    Fix blink mode check
    
    ATTR_BLINK is an attribute for a Glyph and will not be set in term.mode.

diff --git a/st.c b/st.c
index 6756f76..b63d865 100644
--- a/st.c
+++ b/st.c
_AT_@ -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);
                         }
                 }
 
Received on Mon Aug 05 2013 - 11:47:45 CEST

This archive was generated by hypermail 2.3.0 : Mon Aug 05 2013 - 11:48:37 CEST