diff options
author | Canop <cano.petrole@gmail.com> | 2024-07-05 17:12:13 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2024-07-05 17:12:13 +0200 |
commit | 5070751f13d1b4c02d315802dba9fb980ac72ebf (patch) | |
tree | 103822d41258d0b579f0b960f3e133c5e2b512c3 | |
parent | 26d6110ecfa851311e60f9d5884056615cfa9ac8 (diff) |
canonicalize paths on focusing them
This matters mostly for links, when you have a link like '../'.
-rw-r--r-- | src/browser/browser_state.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/browser/browser_state.rs b/src/browser/browser_state.rs index 82dbb49..69d9835 100644 --- a/src/browser/browser_state.rs +++ b/src/browser/browser_state.rs @@ -53,6 +53,7 @@ impl BrowserState { con: &AppContext, dam: &Dam, ) -> Result<BrowserState, TreeBuildError> { + let path = path.canonicalize().unwrap_or(path); let pending_task = options.pattern .take() .as_option() |