mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-08 09:14:22 +01:00
Filling with the right attr should be done in screen-display.c.
This commit is contained in:
parent
21d10e6894
commit
e215e177df
@ -1,4 +1,4 @@
|
||||
/* $Id: screen-display.c,v 1.13 2007-12-06 21:57:57 nicm Exp $ */
|
||||
/* $Id: screen-display.c,v 1.14 2007-12-06 22:13:14 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -39,6 +39,10 @@ screen_display_make_lines(struct screen *s, u_int py, u_int ny)
|
||||
return;
|
||||
}
|
||||
screen_make_lines(s, screen_y(s, py), ny);
|
||||
if (s->attr != SCREEN_DEFATTR || s->colr != SCREEN_DEFCOLR) {
|
||||
screen_display_fill_area(s, 0, py,
|
||||
screen_size_x(s), ny, SCREEN_DEFDATA, s->attr, s->colr);
|
||||
}
|
||||
}
|
||||
|
||||
/* Free a region of lines. */
|
||||
|
8
screen.c
8
screen.c
@ -1,4 +1,4 @@
|
||||
/* $Id: screen.c,v 1.57 2007-12-06 21:57:57 nicm Exp $ */
|
||||
/* $Id: screen.c,v 1.58 2007-12-06 22:13:14 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -334,12 +334,6 @@ screen_make_lines(struct screen *s, u_int py, u_int ny)
|
||||
s->grid_colr[i] = NULL;
|
||||
s->grid_size[i] = 0;
|
||||
}
|
||||
|
||||
/* XXX should this be done in the callers? */
|
||||
if (s->attr != SCREEN_DEFATTR || s->colr != SCREEN_DEFCOLR) {
|
||||
screen_fill_area(s, 0, py,
|
||||
screen_size_x(s), ny, SCREEN_DEFDATA, s->attr, s->colr);
|
||||
}
|
||||
}
|
||||
|
||||
/* Free a range of ny lines at py. */
|
||||
|
Loading…
Reference in New Issue
Block a user