Fixing the selection issue in altscreens.
Christoph Lohmann 20h@r-36.net
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
st.c
→
st.c
@@ -1410,7 +1410,7 @@ }
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 @@
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); } }