diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2025-04-19 10:16:48 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-04-19 11:35:06 +0000 |
| commit | cb2a64c5854205092150afe80f96177764bd4038 (patch) | |
| tree | cbf880312e2ff5e1f7cc20072433f8cdcc7235fe | |
| parent | render: fix colors.alpha-mode=matching (diff) | |
csi: don't allow client app to enable grapheme-shaping when disabled at compile-time
Closes #2039
| -rw-r--r-- | CHANGELOG.md | 5 | ||||
| -rw-r--r-- | csi.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6958c869..c15e05bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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: |
