Skip to content

Commit

Permalink
fix(graphical): Format entire link instead of just name (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdygert-spok committed Jul 11, 2024
1 parent bdd1d74 commit bf5aa37
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/handlers/graphical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -568,13 +568,16 @@ impl GraphicalReportHandler {
};

if let Some(source_name) = primary_contents.name() {
let source_name = source_name.style(self.theme.styles.link);
writeln!(
f,
"[{}:{}:{}]",
source_name,
primary_contents.line() + 1,
primary_contents.column() + 1
"[{}]",
format_args!(
"{}:{}:{}",
source_name,
primary_contents.line() + 1,
primary_contents.column() + 1
)
.style(self.theme.styles.link)
)?;
} else if lines.len() <= 1 {
writeln!(f, "{}", self.theme.characters.hbar.to_string().repeat(3))?;
Expand Down

0 comments on commit bf5aa37

Please sign in to comment.