From: Daniel Carl Date: Thu, 4 Apr 2013 15:39:07 +0000 (+0200) Subject: Don't call search engine for url like http://localhost. X-Git-Url: https://git.owens.tech/assets/favicon.png/assets/favicon.png/git?a=commitdiff_plain;h=096c40a785b61778715766f9b015400d92fb714f;p=vimb.git Don't call search engine for url like localhost. --- diff --git a/src/main.c b/src/main.c index d5cece1..17a33d6 100644 --- a/src/main.c +++ b/src/main.c @@ -143,7 +143,7 @@ gboolean vb_load_uri(const Arg *arg) rp = realpath(path, NULL); uri = g_strdup_printf("file://%s", rp); free(rp); - } else if (!strchr(path, '.')) { + } else if (!strchr(path, '.' && !strchr(path, '/'))) { char *part = NULL, *tmpl = NULL, *query = NULL; /* look up for a searchengine with handle */