[dev] [st] [PATCH] Clear selection when tclearregion() touches its range.

From: Alexander Sedov <alex0player_AT_gmail.com>
Date: Wed, 24 Apr 2013 03:00:16 +0400

---
 st.c |    3 +++
 1 file changed, 3 insertions(+)
diff --git a/st.c b/st.c
index 11b9b51..7e79358 100644
--- a/st.c
+++ b/st.c
_AT_@ -1425,6 +1425,9 @@ tclearregion(int x1, int y1, int x2, int y2) {
 		for(x = x1; x <= x2; x++) {
 			term.line[y][x] = term.c.attr;
 			memcpy(term.line[y][x].c, " ", 2);
+			if(selected(x, y)) {
+				sel.bx = -1;
+			}
 		}
 	}
 }
-- 
1.7.10.4
Received on Wed Apr 24 2013 - 01:00:16 CEST

This archive was generated by hypermail 2.3.0 : Wed Apr 24 2013 - 01:12:05 CEST