From 02201940d93bad286d7ecbaaf8cf5c595cf0dc3b Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 8 Jan 2026 08:39:36 -0700 Subject: [PATCH] Auto complete slash at end of directories --- src/tab.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tab.rs b/src/tab.rs index 693b114..ff8029a 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -1384,7 +1384,7 @@ impl EditLocation { }; let completions = self.completions.as_ref()?; let completion = completions.get(selected)?; - Some(self.location.with_path(completion.1.clone())) + Some(self.location.with_path(completion.1.clone()).normalize()) } } @@ -4758,6 +4758,7 @@ impl Tab { }) .on_submit(|_| Message::EditLocationSubmit) .on_tab(Message::EditLocationTab) + .on_unfocus(Message::EditLocation(None)) .line_height(1.0), ); }