mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 22:43:58 +00:00
Redraw selection in tty_draw_line, so it appears when redrawing whole
pane. Reported by Theo Buehler.
This commit is contained in:
@ -1141,12 +1141,8 @@ screen_write_cell(struct screen_write_ctx *ctx, const struct grid_cell *gc)
|
||||
|
||||
/* Write to the screen. */
|
||||
if (selected) {
|
||||
memcpy(&tmp_gc, &s->sel.cell, sizeof tmp_gc);
|
||||
utf8_copy(&tmp_gc.data, &gc->data);
|
||||
tmp_gc.attr = tmp_gc.attr & ~GRID_ATTR_CHARSET;
|
||||
tmp_gc.attr |= gc->attr & GRID_ATTR_CHARSET;
|
||||
tmp_gc.flags = gc->flags;
|
||||
screen_write_flush(ctx);
|
||||
screen_select_cell(s, &tmp_gc, gc);
|
||||
ttyctx.cell = &tmp_gc;
|
||||
tty_write(tty_cmd_cell, &ttyctx);
|
||||
ctx->written++;
|
||||
|
Reference in New Issue
Block a user