aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2018-08-09 09:53:44 +0000
committernicm <nicm>2018-08-09 09:53:44 +0000
commita5ef1f2ed6f830aa25e4fcab9618c3ccea17d8db (patch)
tree83eedb853dd3955ec628291a46214117624eb046 /tmux.h
parentf5d7a80272ca2d091c5a511019ac4b8d98ca7167 (diff)
downloadrtmux-a5ef1f2ed6f830aa25e4fcab9618c3ccea17d8db.tar.gz
rtmux-a5ef1f2ed6f830aa25e4fcab9618c3ccea17d8db.tar.bz2
rtmux-a5ef1f2ed6f830aa25e4fcab9618c3ccea17d8db.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 'tmux.h')
-rw-r--r--tmux.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/tmux.h b/tmux.h
index 8c3a2364..a612fa46 100644
--- a/tmux.h
+++ b/tmux.h
@@ -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];