summaryrefslogtreecommitdiffstats
path: root/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm>2016-10-12 13:24:07 +0000
committernicm <nicm>2016-10-12 13:24:07 +0000
commit4160df4ca4035c8caafce7650d0fcbcccc391f80 (patch)
tree4900cee4d755e18393587cb14cc4e8f662764504 /screen-write.c
parent68bebe1fb7dfe5d152a2734c5bd572b1db641a4c (diff)
Redraw selection in tty_draw_line, so it appears when redrawing whole
pane. Reported by Theo Buehler.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/screen-write.c b/screen-write.c
index 3a1fc8c8..1767d9bb 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -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++;