csi: don't allow client app to enable grapheme-shaping when disabled at compile-time

Closes #2039
This commit is contained in:
Daniel Eklöf 2025-04-19 12:16:48 +02:00
parent 1a2e5f4932
commit cb2a64c585
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 7 additions and 0 deletions

View file

@ -68,6 +68,11 @@
### Fixed
* `colors.alpha-mode=matching` not working as intended.
* Grapheme shaping was allowed to be "enabled" at runtime, even though
disabled at compile time. This caused mis-rendering of certain
codepoints ([#2039][2039]).
[2039]: https://codeberg.org/dnkl/foot/issues/2039
### Security

2
csi.c
View file

@ -558,7 +558,9 @@ decset_decrst(struct terminal *term, unsigned param, bool enable)
break;
case 2027:
#if defined(FOOT_GRAPHEME_CLUSTERING)
term->grapheme_shaping = enable;
#endif
break;
case 2048: