aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-09-21 16:28:54 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-09-25 14:50:50 +0000
commit7fcbca808b57bd29afbe82dcdacfac6da8ed16da (patch)
tree20114b0b9ea3ce03aee1d1e87394c176ca466d18 /csi.c
parentcsi: implement DECSET/DECRST/DECRQM 2027 - grapheme cluster processing (diff)
csi: decrqm: 2027: permanently disabled when grapheme-width-method != double-width
Diffstat (limited to 'csi.c')
-rw-r--r--csi.c4
1 files changed, 3 insertions, 1 deletions
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));
}