mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 01:48:47 +00:00
Combining characters need a full flush.
This commit is contained in:
parent
fd6e46596d
commit
ddb3750c8b
@ -1153,11 +1153,9 @@ screen_write_cell(struct screen_write_ctx *ctx, const struct grid_cell *gc)
|
|||||||
return;
|
return;
|
||||||
ctx->cells++;
|
ctx->cells++;
|
||||||
|
|
||||||
/* Flush any existing scrolling. */
|
|
||||||
screen_write_collect_flush(ctx, 1);
|
|
||||||
|
|
||||||
/* If the width is zero, combine onto the previous character. */
|
/* If the width is zero, combine onto the previous character. */
|
||||||
if (width == 0) {
|
if (width == 0) {
|
||||||
|
screen_write_collect_flush(ctx, 0);
|
||||||
if ((gc = screen_write_combine(ctx, &gc->data, &xx)) != 0) {
|
if ((gc = screen_write_combine(ctx, &gc->data, &xx)) != 0) {
|
||||||
screen_write_cursormove(ctx, xx, s->cy);
|
screen_write_cursormove(ctx, xx, s->cy);
|
||||||
screen_write_initctx(ctx, &ttyctx);
|
screen_write_initctx(ctx, &ttyctx);
|
||||||
@ -1167,6 +1165,9 @@ screen_write_cell(struct screen_write_ctx *ctx, const struct grid_cell *gc)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Flush any existing scrolling. */
|
||||||
|
screen_write_collect_flush(ctx, 1);
|
||||||
|
|
||||||
/* If this character doesn't fit, ignore it. */
|
/* If this character doesn't fit, ignore it. */
|
||||||
if ((~s->mode & MODE_WRAP) &&
|
if ((~s->mode & MODE_WRAP) &&
|
||||||
width > 1 &&
|
width > 1 &&
|
||||||
|
Loading…
Reference in New Issue
Block a user