mirror of
https://github.com/tmux/tmux.git
synced 2024-12-25 10:58:48 +00:00
Do not collect top-bit-set characters in case they need to be replaced.
This commit is contained in:
parent
2c5a6f9af5
commit
b0c1cefeda
@ -1297,10 +1297,12 @@ screen_write_collect_end(struct screen_write_ctx *ctx)
|
|||||||
grid_view_get_cell(s->grid, xx, s->cy, &gc);
|
grid_view_get_cell(s->grid, xx, s->cy, &gc);
|
||||||
if (~gc.flags & GRID_FLAG_PADDING)
|
if (~gc.flags & GRID_FLAG_PADDING)
|
||||||
break;
|
break;
|
||||||
grid_view_set_cell(s->grid, xx, s->cy, &grid_default_cell);
|
grid_view_set_cell(s->grid, xx, s->cy,
|
||||||
|
&grid_default_cell);
|
||||||
}
|
}
|
||||||
if (gc.data.width > 1)
|
if (gc.data.width > 1)
|
||||||
grid_view_set_cell(s->grid, xx, s->cy, &grid_default_cell);
|
grid_view_set_cell(s->grid, xx, s->cy,
|
||||||
|
&grid_default_cell);
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(&gc, &ci->gc, sizeof gc);
|
memcpy(&gc, &ci->gc, sizeof gc);
|
||||||
@ -1333,7 +1335,7 @@ screen_write_collect_add(struct screen_write_ctx *ctx,
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
collect = 1;
|
collect = 1;
|
||||||
if (gc->data.width != 1 || gc->data.size != 1)
|
if (gc->data.width != 1 || gc->data.size != 1 || *gc->data.data >= 0x7f)
|
||||||
collect = 0;
|
collect = 0;
|
||||||
else if (gc->attr & GRID_ATTR_CHARSET)
|
else if (gc->attr & GRID_ATTR_CHARSET)
|
||||||
collect = 0;
|
collect = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user