summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-04-22 10:30:56 +0000
committernicm <nicm@openbsd.org>2017-04-22 10:30:56 +0000
commit545321a54716e9cbff936a72d8af821bc866dd72 (patch)
tree097fa4e05adb5925afdd00757ae252375511582a
parentnew -A should use the session name. (diff)
downloadwireguard-openbsd-545321a54716e9cbff936a72d8af821bc866dd72.tar.xz
wireguard-openbsd-545321a54716e9cbff936a72d8af821bc866dd72.zip
Can't collect UTF-8 characters of more than one byte at the moment.
-rw-r--r--usr.bin/tmux/screen-write.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/screen-write.c b/usr.bin/tmux/screen-write.c
index cd8a8b039fe..0b89954deaf 100644
--- a/usr.bin/tmux/screen-write.c
+++ b/usr.bin/tmux/screen-write.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: screen-write.c,v 1.116 2017/03/07 13:48:28 nicm Exp $ */
+/* $OpenBSD: screen-write.c,v 1.117 2017/04/22 10:30:56 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1113,7 +1113,7 @@ screen_write_collect_add(struct screen_write_ctx *ctx,
*/
collect = 1;
- if (gc->data.width != 1)
+ if (gc->data.width != 1 || gc->data.size != 1)
collect = 0;
else if (gc->attr & GRID_ATTR_CHARSET)
collect = 0;