From: Daniel Carl Date: Fri, 29 Aug 2014 08:35:37 +0000 (+0200) Subject: Allow to use shortcut also if query contains '://' (#104). X-Git-Url: https://git.owens.tech/rss.xml/rss.xml/git?a=commitdiff_plain;h=c41fef72936220bda91e5aacc56fc7b1df9a9092;p=vimb.git Allow to use shortcut also if query contains '://' (#104). --- diff --git a/src/main.c b/src/main.c index 682b476..46932dc 100644 --- a/src/main.c +++ b/src/main.c @@ -186,7 +186,9 @@ gboolean vb_load_uri(const Arg *arg) path = GET_CHAR("home-page"); } - if (strstr(path, "://") || !strncmp(path, "about:", 6)) { + /* If path contains :// but no space we open it direct. This is required + * to use :// also with shortcuts */ + if ((strstr(path, "://") && !strchr(path, ' ')) || !strncmp(path, "about:", 6)) { uri = g_strdup(path); } else if (stat(path, &st) == 0) { /* check if the path is a file path */