aboutsummarylogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authorChristoph Lohmann2013-04-24 21:30:59 +0200
committerChristoph Lohmann2013-04-24 21:30:59 +0200
commit79d9f7c672d800c0597d2ae35da1f978dc5a26cb (patch)
tree1c3efd6e97b61c978df1bfec57612a0809430501 /st.c
parent23d6c92c1f58ba4895a18967a3486a6b9393bd53 (diff)
downloadaur-79d9f7c672d800c0597d2ae35da1f978dc5a26cb.tar.gz
Fixing the selection issue in altscreens.
Diffstat (limited to 'st.c')
-rw-r--r--st.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/st.c b/st.c
index 8e9e895e61d0..c0a4780aca6e 100644
--- a/st.c
+++ b/st.c
@@ -1410,7 +1410,7 @@ tsetchar(char *c, Glyph *attr, int x, int y) {
void
tclearregion(int x1, int y1, int x2, int y2) {
- int x, y, temp, mask;
+ int x, y, temp;
if(x1 > x2)
temp = x1, x1 = x2, x2 = temp;
@@ -1425,9 +1425,9 @@ tclearregion(int x1, int y1, int x2, int y2) {
for(y = y1; y <= y2; y++) {
term.dirty[y] = 1;
for(x = x1; x <= x2; x++) {
- mask = selected(x, y) ? ATTR_REVERSE : 0;
+ if(selected(x, y))
+ selclear(NULL);
term.line[y][x] = term.c.attr;
- term.line[y][x].mode ^= mask;
memcpy(term.line[y][x].c, " ", 2);
}
}