Skip to content
Myr

Merge pull request #1872 from josephadamsdev/fix-1843-windows-hyperlink-slash

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix Windows hyperlinks for paths with spaces

authored by Thayne McCombs · committed by GitHub · parents 5f95a78, dcc5ff8 · Browse files · 3 files+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+4 added−2 removed

  • tests:+1 added−1 removed
  • other:+3 added−1 removed

3 files+4 added−2 removed

modified:src/hyperlink.rs+1 added-1 removed
56 unmodified lines
57}5859#[cfg(not(unix))]60const fn host() -> &'static str {61 ""61 "/"62}6364#[cfg(test)]65mod test {
22 unmodified lines
modified:tests/tests.rs+1 added-1 removed
2695 unmodified lines
26962697 #[cfg(unix)]2698 let hostname = nix::unistd::gethostname().unwrap().into_string().unwrap();2699 #[cfg(not(unix))]2700 let hostname = "";2700 let hostname = "/";27012702 let expected = format!(2703 "\x1b]8;;file://{}{}/a.foo\x1b\\a.foo\x1b]8;;\x1b\\",2704 hostname,
5 unmodified lines
modified:CHANGELOG.md+2 added
3 unmodified lines
456## Bugfixes78- Fix Windows hyperlink generation for paths with spaces. (#1872)910- `--print0` combined with `--exec` will now print a `\0` between the output of each entry. Note that if there are multiple instances11 of `--exec`, the `\0` will be between each _set_ of commands, _not_ between each individual command run. Fixes #1797.1213- Several bugs were fixed by an update to the `ignore` library used for handling ignore rules
829 unmodified lines