mirror of
https://github.com/tmux/tmux.git
synced 2026-01-11 08:21:52 +00:00
Correct redrawing of wide characters when overwritten. Reported by Jake
Stewart in GitHub issue 4737.
This commit is contained in:
6
tty.c
6
tty.c
@@ -2112,6 +2112,12 @@ tty_cmd_cell(struct tty *tty, const struct tty_ctx *ctx)
|
||||
(gcp->data.width == 1 && !tty_check_overlay(tty, px, py)))
|
||||
return;
|
||||
|
||||
if (ctx->num == 2) {
|
||||
tty_draw_line(tty, s, 0, s->cy, screen_size_x(s),
|
||||
ctx->xoff - ctx->wox, py, &ctx->defaults, ctx->palette);
|
||||
return;
|
||||
}
|
||||
|
||||
/* Handle partially obstructed wide characters. */
|
||||
if (gcp->data.width > 1) {
|
||||
tty_check_overlay_range(tty, px, py, gcp->data.width, &r);
|
||||
|
||||
Reference in New Issue
Block a user