diff options
author | 2018-08-09 09:53:44 +0000 | |
---|---|---|
committer | 2018-08-09 09:53:44 +0000 | |
commit | 738a276adba55e71621c07cc308d6d9aa0525f7a (patch) | |
tree | 7ad131b2921622b3a712fe25057865c4bf1276d3 /usr.bin/tmux/tmux.h | |
parent | regen (diff) | |
download | wireguard-openbsd-738a276adba55e71621c07cc308d6d9aa0525f7a.tar.xz wireguard-openbsd-738a276adba55e71621c07cc308d6d9aa0525f7a.zip |
Bump the UTF-8 character array up to 18 to allow for more combining
characters (some languages use up to five). This size doesn't make as
much difference now that UTF-8 goes into an extended cell. GitHub issue
1430.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r-- | usr.bin/tmux/tmux.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index 0ca227a317c..8f297a492dc 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.836 2018/08/02 18:35:21 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.837 2018/08/09 09:53:44 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -511,10 +511,11 @@ struct msg_stderr_data { #define ALL_MOUSE_MODES (MODE_MOUSE_STANDARD|MODE_MOUSE_BUTTON|MODE_MOUSE_ALL) /* - * A single UTF-8 character. UTF8_SIZE must be big enough to hold at least one - * combining character as well. + * A single UTF-8 character. UTF8_SIZE must be big enough to hold + * combining characters as well, currently at most five (of three + * bytes) are supported. */ -#define UTF8_SIZE 9 +#define UTF8_SIZE 18 struct utf8_data { u_char data[UTF8_SIZE]; |