aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/display/content.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2024-09-22 00:10:48 +0200
committerChristian Duerr <contact@christianduerr.com>2024-10-02 21:38:07 +0200
commit51089cfeed1adfd741d8dcbe6c9cb9376f88a576 (patch)
treedaf97f64f3236b99b8593f62f2d2864882ac88b0 /alacritty/src/display/content.rs
parentc899208e15c8987480912794d66358ea2581fc39 (diff)
downloadr-alacritty-51089cfeed1adfd741d8dcbe6c9cb9376f88a576.tar.gz
r-alacritty-51089cfeed1adfd741d8dcbe6c9cb9376f88a576.tar.bz2
r-alacritty-51089cfeed1adfd741d8dcbe6c9cb9376f88a576.zip
Move root config fields to `[general]` section
Some users struggle with TOML, since root options must always be at the top of the file, since they're otherwise associated with the last table. To avoid misunderstandings, all root-level fields have been removed. A new `general` section was added to allow housing configuration options that do not fit into any more specific groups. Closes #7906.
Diffstat (limited to 'alacritty/src/display/content.rs')
-rw-r--r--alacritty/src/display/content.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/alacritty/src/display/content.rs b/alacritty/src/display/content.rs
index 30439fc0..0e06b3ca 100644
--- a/alacritty/src/display/content.rs
+++ b/alacritty/src/display/content.rs
@@ -328,7 +328,7 @@ impl RenderableCell {
_ => rgb.into(),
},
Color::Named(ansi) => {
- match (config.draw_bold_text_with_bright_colors(), flags & Flags::DIM_BOLD) {
+ match (config.colors.draw_bold_text_with_bright_colors, flags & Flags::DIM_BOLD) {
// If no bright foreground is set, treat it like the BOLD flag doesn't exist.
(_, Flags::DIM_BOLD)
if ansi == NamedColor::Foreground
@@ -348,7 +348,7 @@ impl RenderableCell {
},
Color::Indexed(idx) => {
let idx = match (
- config.draw_bold_text_with_bright_colors(),
+ config.colors.draw_bold_text_with_bright_colors,
flags & Flags::DIM_BOLD,
idx,
) {