summaryrefslogtreecommitdiff
path: root/src/features/hyperlinks.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/hyperlinks.rs')
-rw-r--r--src/features/hyperlinks.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/features/hyperlinks.rs b/src/features/hyperlinks.rs
index 4771a07..e0a354b 100644
--- a/src/features/hyperlinks.rs
+++ b/src/features/hyperlinks.rs
@@ -56,6 +56,9 @@ where
let mut url = config
.hyperlinks_file_link_format
.replace("{path}", &absolute_path.as_ref().to_string_lossy());
+ if let Some(host) = &config.hostname {
+ url = url.replace("{host}", host)
+ }
if let Some(n) = line_number {
url = url.replace("{line}", &format!("{n}"))
} else {