--- st.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/st.c b/st.c index 45bc89d..e0aae9d 100644 --- a/st.c +++ b/st.c _AT_@ -1553,6 +1553,7 @@ tsetchar(char *c, Glyph *attr, int x, int y) { void tclearregion(int x1, int y1, int x2, int y2) { int x, y, temp; + Glyph *gp; if(x1 > x2) temp = x1, x1 = x2, x2 = temp; _AT_@ -1567,10 +1568,13 @@ 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++) { + gp = &term.line[y][x]; if(selected(x, y)) selclear(NULL); - term.line[y][x] = term.c.attr; - memcpy(term.line[y][x].c, " ", 2); + gp->fg = term.c.attr.fg; + gp->bg = term.c.attr.bg; + gp->mode = 0; + memcpy(gp->c, " ", 2); } } } -- 2.0.1Received on Thu Aug 07 2014 - 10:27:41 CEST
This archive was generated by hypermail 2.3.0 : Thu Aug 07 2014 - 10:36:06 CEST