osc: text-size: disable optimization

The optimization prevents the forced-width to be set on the new
combining character, causing issues when followed by more zero-width
codepoints.
This commit is contained in:
Daniel Eklöf 2025-02-03 15:30:00 +01:00
parent ed35a238d6
commit 0f93766614
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
osc.c
View file

@ -1222,6 +1222,7 @@ kitty_text_size(struct terminal *term, char *string)
LOG_DBG("len=%zu, forced=%d, calculated=%zu, using=%zu",
len, forced_width, calculated_width, width);
#if 0
if (len == 1 && calculated_width == forced_width) {
/*
* Optimization: if there's a single codepoint, and either
@ -1233,6 +1234,7 @@ kitty_text_size(struct terminal *term, char *string)
free(wchars);
return;
}
#endif
uint32_t key = composed_key_from_chars(wchars, len);