aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-04-19 10:16:48 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-04-19 11:35:06 +0000
commitcb2a64c5854205092150afe80f96177764bd4038 (patch)
treecbf880312e2ff5e1f7cc20072433f8cdcc7235fe
parentrender: 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.md5
-rw-r--r--csi.c2
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
diff --git a/csi.c b/csi.c
index 81c71e31..b66fda21 100644
--- a/csi.c
+++ b/csi.c
@@ -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: