aboutsummaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/input.rs b/src/input.rs
index 1fac12a..252c114 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -173,11 +173,7 @@ fn handle_editing_input(
Command::Quit => return true,
Command::Open(to) =>
if let Some(to) = to {
- match Url::parse(&if to.starts_with("gemini://") {
- to
- } else {
- format!("gemini://{}", to)
- }) {
+ match Url::parse(&crate::url::prefix_gemini(&to)) {
Ok(url) => {
app.set_url(url);
app.make_request();