mirror of
https://github.com/tmux/tmux.git
synced 2025-09-05 08:07:03 +00:00
Use the current attr/colours for filling in new areas, this fixes the echo \\033[35\;46m\\033[2J bug.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* $Id: screen-display.c,v 1.12 2007-12-06 10:36:01 nicm Exp $ */
|
||||
/* $Id: screen-display.c,v 1.13 2007-12-06 21:57:57 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -378,8 +378,8 @@ screen_display_insert_characters(struct screen *s, u_int px, u_int py, u_int nx)
|
||||
}
|
||||
|
||||
memset(&s->grid_data[py][px], SCREEN_DEFDATA, nx);
|
||||
memset(&s->grid_attr[py][px], SCREEN_DEFATTR, nx);
|
||||
memset(&s->grid_colr[py][px], SCREEN_DEFCOLR, nx);
|
||||
memset(&s->grid_attr[py][px], s->attr, nx);
|
||||
memset(&s->grid_colr[py][px], s->colr, nx);
|
||||
}
|
||||
|
||||
/* Delete characters. */
|
||||
@ -417,8 +417,8 @@ screen_display_delete_characters(struct screen *s, u_int px, u_int py, u_int nx)
|
||||
}
|
||||
|
||||
memset(&s->grid_data[py][screen_size_x(s) - nx], SCREEN_DEFDATA, nx);
|
||||
memset(&s->grid_attr[py][screen_size_x(s) - nx], SCREEN_DEFATTR, nx);
|
||||
memset(&s->grid_colr[py][screen_size_x(s) - nx], SCREEN_DEFCOLR, nx);
|
||||
memset(&s->grid_attr[py][screen_size_x(s) - nx], s->attr, nx);
|
||||
memset(&s->grid_colr[py][screen_size_x(s) - nx], s->colr, nx);
|
||||
}
|
||||
|
||||
/* Fill cells from another screen, with an offset. */
|
||||
|
Reference in New Issue
Block a user