config: grapheme-width-method sets mode 2027

Fixes #1403

This changes the behavior of `grapheme-width-method = unicode` to change
the default state of mode 2027 to true. Prior to this, setting this
config would force grapheme clustering regardless of mode 2027. Now,
this only sets the default and running TUI programs can disable it if
they want.
This commit is contained in:
Mitchell Hashimoto
2024-02-02 12:13:13 -08:00
parent cabd2d572d
commit eb653907d6
3 changed files with 10 additions and 14 deletions

View File

@@ -208,7 +208,7 @@ const c = @cImport({
/// reset, this configuration will be used again.
///
/// This configuration can be changed at runtime but will not affect existing
/// printed cells. Only new cells will use the new configuration.
/// terminals. Only new terminals will use the new configuration.
@"grapheme-width-method": GraphemeWidthMethod = .unicode,
/// A named theme to use. The available themes are currently hardcoded to the