From e91ec8e880062c1822d08f47dac48dffeab4548f Mon Sep 17 00:00:00 2001 From: mo8it Date: Fri, 1 Mar 2024 00:18:12 +0100 Subject: Optimize getting a relative path --- helix-view/src/document.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-view/src') diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index 4e7b1de9..5f3595ee 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -1685,7 +1685,7 @@ impl Document { &self.selections } - pub fn relative_path(&self) -> Option { + pub fn relative_path(&self) -> Option> { self.path .as_deref() .map(helix_stdx::path::get_relative_path) -- cgit v1.2.3-70-g09d2