summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/input.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-04-22 08:33:28 +0000
committernicm <nicm@openbsd.org>2017-04-22 08:33:28 +0000
commit3e64f49e6b202f37683fb0849b1c4018318fdbcd (patch)
treea5a31a183c5c53fb992447a7dbd4ff3a0caf0d12 /usr.bin/tmux/input.c
parentFix if-shell without a client (so in the config file). Reported by Theo (diff)
downloadwireguard-openbsd-3e64f49e6b202f37683fb0849b1c4018318fdbcd.tar.xz
wireguard-openbsd-3e64f49e6b202f37683fb0849b1c4018318fdbcd.zip
We need to collect UTF-8 characters so that width != 1 characters are
correctly flushed.
Diffstat (limited to 'usr.bin/tmux/input.c')
-rw-r--r--usr.bin/tmux/input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c
index 6b2706b4c81..15497e6386f 100644
--- a/usr.bin/tmux/input.c
+++ b/usr.bin/tmux/input.c
@@ -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);
}