diff options
author | Rayford Shireman <123055883+rayfordshire@users.noreply.github.com> | 2023-09-24 08:29:27 +0000 |
---|---|---|
committer | Richard Russon <rich@flatcap.org> | 2023-09-24 11:25:17 +0100 |
commit | 8c90f5e2cde587ad4742be813737da4bd7f3957a (patch) | |
tree | 240dfabfc45694fc3925928f8a45b17b726dc77f | |
parent | 1b455200c201efa962ec65ba08772cf4ceea83ae (diff) |
color_directcolor: Also set the default/initial value on startup
On startup we try to detect the terminals capability for direct color
and set value of $color_directcolor accordingly. However, we forgot to
set its initial/default value.
Set the initial/default value for $color_directcolor like we do for all
other config variables which depend on the environment, e.g. $editor.
-rw-r--r-- | init.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -367,7 +367,8 @@ int mutt_init(struct ConfigSet *cs, bool skip_sys_rc, struct ListHead *commands) if (env_colorterm && (mutt_str_equal(env_colorterm, "truecolor") || mutt_str_equal(env_colorterm, "24bit"))) { - cs_subset_str_native_set(NeoMutt->sub, "color_directcolor", true, NULL); + cs_str_initial_set(cs, "color_directcolor", "yes", NULL); + cs_str_reset(cs, "color_directcolor", NULL); } } #endif |