From c41fef72936220bda91e5aacc56fc7b1df9a9092 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Fri, 29 Aug 2014 10:35:37 +0200 Subject: [PATCH] Allow to use shortcut also if query contains '://' (#104). --- src/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 */ -- 2.20.1