From a17946e21b5767d7576c2f5e85423589d831b042 Mon Sep 17 00:00:00 2001 From: Cheong Lau <234708519+Cheong-Lau@users.noreply.github.com> Date: Wed, 26 Nov 2025 14:15:18 +1000 Subject: [PATCH] fix(app): type to search enters text into path bar Makes the behaviour consistent with other locations. --- src/app.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index 44d5880..cd4d005 100644 --- a/src/app.rs +++ b/src/app.rs @@ -3004,7 +3004,12 @@ impl Application for App { .as_ref() .map_or_else(|| &tab.location, |x| &x.location); // Try to add text to end of location - if let Some(path) = location.path_opt() { + if let Location::Network(uri, ..) = location { + let mut uri_string = uri.clone(); + uri_string.push_str(&text); + tab.edit_location = + Some(location.with_uri(uri_string).into()); + } else if let Some(path) = location.path_opt() { let mut path_string = path.to_string_lossy().into_owned(); path_string.push_str(&text);