~julienxx/castor

59652a81d74eee92b6f9a2b189744680e4327291 — Julien Blanchard a month ago 57f402e 0.8.11
Don't crash on empty URLs
3 files changed, 5 insertions(+), 3 deletions(-)

M Cargo.lock
M Cargo.toml
M src/main.rs
M Cargo.lock => Cargo.lock +1 -1
@@ 112,7 112,7 @@ dependencies = [

[[package]]
name = "castor"
version = "0.8.10"
version = "0.8.11"
dependencies = [
 "ansi-parser",
 "dirs",

M Cargo.toml => Cargo.toml +1 -1
@@ 1,6 1,6 @@
[package]
name = "castor"
version = "0.8.10"
version = "0.8.11"
authors = ["Julien Blanchard <julien@typed-hole.org>"]
edition = "2018"


M src/main.rs => src/main.rs +3 -1
@@ 106,7 106,9 @@ fn main() {
}

fn route_url(gui: &Arc<Gui>, url: String) {
    if url.starts_with("gemini://") {
    if url == "" {
        return
    } else if url.starts_with("gemini://") {
        visit_url(&gui, Gemini { source: url })
    } else if url.starts_with("gopher://") {
        visit_url(&gui, Gopher { source: url })