We need to collect UTF-8 characters so that width != 1 characters are
authornicm <nicm@openbsd.org>
Sat, 22 Apr 2017 08:33:28 +0000 (08:33 +0000)
committernicm <nicm@openbsd.org>
Sat, 22 Apr 2017 08:33:28 +0000 (08:33 +0000)
correctly flushed.

usr.bin/tmux/input.c

index 6b2706b..15497e6 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: input.c,v 1.118 2017/03/22 07:16:54 nicm Exp $ */
+/* $OpenBSD: input.c,v 1.119 2017/04/22 08:33:28 nicm Exp $ */
 
 /*
  * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -2011,7 +2011,7 @@ input_utf8_close(struct input_ctx *ictx)
            (int)ud->size, ud->data, ud->width);
 
        utf8_copy(&ictx->cell.cell.data, ud);
-       screen_write_cell(&ictx->ctx, &ictx->cell.cell);
+       screen_write_collect_add(&ictx->ctx, &ictx->cell.cell);
 
        return (0);
 }