1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-09-19 11:52:04 +02:00

Only reset color and underline after link

This commit is contained in:
mo8it 2024-08-26 00:48:12 +02:00
parent cb86b44dea
commit d1571d18f9

View File

@ -94,7 +94,9 @@ pub fn terminal_file_link(stdout: &mut StdoutLock, path: &str, color: Color) ->
stdout,
"\x1b]8;;file://{canonical_path}\x1b\\{path}\x1b]8;;\x1b\\",
)?;
stdout.queue(ResetColor)?;
stdout
.queue(SetForegroundColor(Color::Reset))?
.queue(SetAttribute(Attribute::NoUnderline))?;
Ok(())
}