mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-14 05:33:59 -04:00
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:
parent
ed35a238d6
commit
0f93766614
1 changed files with 2 additions and 0 deletions
2
osc.c
2
osc.c
|
|
@ -1222,6 +1222,7 @@ kitty_text_size(struct terminal *term, char *string)
|
||||||
LOG_DBG("len=%zu, forced=%d, calculated=%zu, using=%zu",
|
LOG_DBG("len=%zu, forced=%d, calculated=%zu, using=%zu",
|
||||||
len, forced_width, calculated_width, width);
|
len, forced_width, calculated_width, width);
|
||||||
|
|
||||||
|
#if 0
|
||||||
if (len == 1 && calculated_width == forced_width) {
|
if (len == 1 && calculated_width == forced_width) {
|
||||||
/*
|
/*
|
||||||
* Optimization: if there's a single codepoint, and either
|
* Optimization: if there's a single codepoint, and either
|
||||||
|
|
@ -1233,6 +1234,7 @@ kitty_text_size(struct terminal *term, char *string)
|
||||||
free(wchars);
|
free(wchars);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
uint32_t key = composed_key_from_chars(wchars, len);
|
uint32_t key = composed_key_from_chars(wchars, len);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue