Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

## Bugfixes

- Fix Windows hyperlink generation for paths with spaces. (#1872)

- `--print0` combined with `--exec` will now print a `\0` between the output of each entry. Note that if there are multiple instances
of `--exec`, the `\0` will be between each _set_ of commands, _not_ between each individual command run. Fixes #1797.

Expand Down
2 changes: 1 addition & 1 deletion src/hyperlink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fn host() -> &'static str {

#[cfg(not(unix))]
const fn host() -> &'static str {
""
"/"
}

#[cfg(test)]
Expand Down
2 changes: 1 addition & 1 deletion tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2697,7 +2697,7 @@ fn test_hyperlink() {
#[cfg(unix)]
let hostname = nix::unistd::gethostname().unwrap().into_string().unwrap();
#[cfg(not(unix))]
let hostname = "";
let hostname = "/";

let expected = format!(
"\x1b]8;;file://{}{}/a.foo\x1b\\a.foo\x1b]8;;\x1b\\",
Expand Down