From: Christian Dywan Date: Wed, 28 Oct 2009 21:55:18 +0000 (+0100) Subject: Assume selections containing :// are links of some kind X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c9165c3f97b01740c59d48419609c8ac386b638;p=midori Assume selections containing :// are links of some kind --- diff --git a/midori/midori-view.c b/midori/midori-view.c index d9de94e9..97e52e11 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -1871,7 +1871,7 @@ webkit_web_view_populate_popup_cb (WebKitWebView* web_view, g_strstrip (view->selected_text); if (view->selected_text && !strchr (view->selected_text, ' ') - && strchr (view->selected_text, '.')) + && (strchr (view->selected_text, '.') || g_strstr_len (view->selected_text, 9, "://"))) { if (strchr (view->selected_text, '@')) {