mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 01:51:14 -03:00
builtin set_color: remove obsolete comment
"set_color normal --bold" does set the bold modifier since commit cebc05f6c1
(Reset is not a color, 2025-04-15), so this comment no longer applies.
This commit is contained in:
@@ -148,7 +148,6 @@ pub fn set_color(parser: &Parser, streams: &mut IoStreams, argv: &mut [&wstr]) -
|
||||
|
||||
// Here's some automagic behavior: if either of foreground or background are "normal",
|
||||
// reset all colors/attributes. Same if foreground is "reset" (undocumented).
|
||||
// Note that either overwrite the attributes printed above! For "normal", this is probably wrong?
|
||||
if is_reset || [fg, bg].iter().any(|c| c.is_some_and(|c| c.is_normal())) {
|
||||
outp.reset_text_face();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user