From d1571d18f915943418fb8d13a3997d0d7d384e77 Mon Sep 17 00:00:00 2001 From: mo8it Date: Mon, 26 Aug 2024 00:48:12 +0200 Subject: [PATCH] Only reset color and underline after link --- src/term.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/term.rs b/src/term.rs index 4c6ac90..7b8642b 100644 --- a/src/term.rs +++ b/src/term.rs @@ -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(()) }