From 545832e9fa5768079392710e49ed1d2756dfce1d Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 22 May 2025 07:49:24 +0000 Subject: [PATCH 1/2] Typo, from someone in GitHub issue 4511. --- options-table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options-table.c b/options-table.c index 0c76d43e..36233f8a 100644 --- a/options-table.c +++ b/options-table.c @@ -370,7 +370,7 @@ const struct options_table_entry options_table[] = { .minimum = INPUT_BUF_DEFAULT_SIZE, .maximum = UINT_MAX, .default_num = INPUT_BUF_DEFAULT_SIZE, - .text = "Number of byte accpted in a single input before dropping." + .text = "Number of bytes accepted in a single input before dropping." }, { .name = "menu-style", From 3f4b154b7095a346bf32ac1e28bcf085f802f54d Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 22 May 2025 08:01:29 +0000 Subject: [PATCH 2/2] Bump UTF8_SIZE to the maximum 32 because there are some crazy long UTF-8 sequences out there (GitHub issue 4506). This should not significantly increase typical memory consumption because we only store each Unicode character once in the shared cache. --- tmux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmux.h b/tmux.h index 7bcd4e2e..61de21ae 100644 --- a/tmux.h +++ b/tmux.h @@ -662,7 +662,7 @@ typedef u_int utf8_char; * characters as well. It can't be more than 32 bytes without changes to how * characters are stored. */ -#define UTF8_SIZE 21 +#define UTF8_SIZE 32 struct utf8_data { u_char data[UTF8_SIZE];