From 9c9165c3f97b01740c59d48419609c8ac386b638 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 28 Oct 2009 22:55:18 +0100 Subject: [PATCH] Assume selections containing :// are links of some kind --- midori/midori-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, '@')) { -- 2.39.5