aboutsummaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-07-26 17:48:38 +0000
committerFuwn <[email protected]>2022-07-26 17:48:38 +0000
commitfa92fdfac1a40d2b72bd1eea59d27be216284904 (patch)
tree81eeed0509d7c39e766a0107639fa5f0421e3e0a /src/input.rs
parentrefactor: docs and format (diff)
downloadsydney-fa92fdfac1a40d2b72bd1eea59d27be216284904.tar.xz
sydney-fa92fdfac1a40d2b72bd1eea59d27be216284904.zip
feat(src): prefix urls everywhere
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();