csi: decrqm: 2027: permanently disabled when grapheme-width-method != double-width

This commit is contained in:
Daniel Eklöf 2023-09-21 18:28:54 +02:00
parent 4eef001d58
commit 7fcbca808b
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

4
csi.c
View file

@ -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));
}