Skip to content

Commit d1571d1

Browse files
committed
Only reset color and underline after link
1 parent cb86b44 commit d1571d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/term.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ pub fn terminal_file_link(stdout: &mut StdoutLock, path: &str, color: Color) ->
9494
stdout,
9595
"\x1b]8;;file://{canonical_path}\x1b\\{path}\x1b]8;;\x1b\\",
9696
)?;
97-
stdout.queue(ResetColor)?;
97+
stdout
98+
.queue(SetForegroundColor(Color::Reset))?
99+
.queue(SetAttribute(Attribute::NoUnderline))?;
98100

99101
Ok(())
100102
}

0 commit comments

Comments
 (0)