diff options
author | chtenb | 2023-08-30 07:38:29 +0000 |
---|---|---|
committer | GitHub | 2023-08-30 07:38:29 +0000 |
commit | 7fffc0a5d100685f2145c9666653fc03151b9a62 (patch) | |
tree | a7340ce855d55c2bc236a2d7572f0b21848a7ee0 /helix-view | |
parent | 0cb595e226c9970989ee1e680ae6b8011d188cbf (diff) |
Rename reset to default (#8114)
Use `default` instead of `reset`, as this is the conventional name for ANSI codes 39/49. The word `reset` should be reserved for ANSI code `0`, which resets both fg and bg colors at once, while also removing all modifiers. While the code uses the value name `Reset`, this is misleading and should not leak into the user space.
Diffstat (limited to 'helix-view')
-rw-r--r-- | helix-view/src/theme.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-view/src/theme.rs b/helix-view/src/theme.rs index 7a9aae51..a288ae9a 100644 --- a/helix-view/src/theme.rs +++ b/helix-view/src/theme.rs @@ -359,7 +359,7 @@ impl Default for ThemePalette { fn default() -> Self { Self { palette: hashmap! { - "reset".to_string() => Color::Reset, + "default".to_string() => Color::Reset, "black".to_string() => Color::Black, "red".to_string() => Color::Red, "green".to_string() => Color::Green, |