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, stdout,
"\x1b]8;;file://{canonical_path}\x1b\\{path}\x1b]8;;\x1b\\", "\x1b]8;;file://{canonical_path}\x1b\\{path}\x1b]8;;\x1b\\",
)?; )?;
stdout.queue(ResetColor)?; stdout
.queue(SetForegroundColor(Color::Reset))?
.queue(SetAttribute(Attribute::NoUnderline))?;
Ok(()) Ok(())
} }