From 7fcbca808b57bd29afbe82dcdacfac6da8ed16da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 21 Sep 2023 18:28:54 +0200 Subject: [PATCH] csi: decrqm: 2027: permanently disabled when grapheme-width-method != double-width --- csi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/csi.c b/csi.c index 2abf08f8..b83fc9b3 100644 --- a/csi.c +++ b/csi.c @@ -576,7 +576,9 @@ decrqm(const struct terminal *term, unsigned param) case 1070: return decrpm(term->sixel.use_private_palette); case 2004: return decrpm(term->bracketed_paste); case 2026: return decrpm(term->render.app_sync_updates.enabled); - case 2027: return decrpm(term->grapheme_shaping); + case 2027: return term->conf->tweak.grapheme_width_method != GRAPHEME_WIDTH_DOUBLE + ? DECRPM_PERMANENTLY_RESET + : decrpm(term->grapheme_shaping); case 8452: return decrpm(term->sixel.cursor_right_of_graphics); case 737769: return decrpm(term_ime_is_enabled(term)); }