[dev] [st] [PATCH] Fix blink mode check

From: Michael Forney <mforney_AT_mforney.org>
Date: Thu, 25 Jul 2013 16:24:16 -0700

ATTR_BLINK is an attribute for a Glyph and will not be set in term.mode.
---
Again, I haven't actually run into any problems caused by this, but this seems
like a typo to me.
 st.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/st.c b/st.c
index 8992998..734c345 100644
--- a/st.c
+++ b/st.c
_AT_@ -3544,8 +3544,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);
 			}
 		}
 
-- 
1.8.3
Received on Fri Jul 26 2013 - 01:24:16 CEST

This archive was generated by hypermail 2.3.0 : Fri Jul 26 2013 - 01:36:05 CEST