[dev] [st] [PATCH] Removed redundant check in draw code.

From: Alexander Sedov <alex0player_AT_gmail.com>
Date: Wed, 24 Apr 2013 02:39:04 +0400

We're now clearing empty areas with spaces, so there is no point to check
if character contains non-empty string.
---
 st.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/st.c b/st.c
index 71e5b83..11b9b51 100644
--- a/st.c
+++ b/st.c
_AT_@ -3077,7 +3077,7 @@ drawregion(int x1, int y1, int x2, int y2) {
 		ic = ib = ox = 0;
 		for(x = x1; x < x2; x++) {
 			new = term.line[y][x];
-			if(ena_sel && *(new.c) && selected(x, y))
+			if(ena_sel && selected(x, y))
 				new.mode ^= ATTR_REVERSE;
 			if(ib > 0 && (ATTRCMP(base, new)
 					|| ib >= DRAW_BUF_SIZ-UTF_SIZ)) {
-- 
1.7.10.4
Received on Wed Apr 24 2013 - 00:39:04 CEST

This archive was generated by hypermail 2.3.0 : Wed Apr 24 2013 - 00:48:04 CEST