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:
Johannes Altmanninger
2025-04-23 19:30:22 +02:00
parent 131f0f3916
commit 709f193b50

View File

@@ -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 {