]> spindle.queued.net Git - midori/commitdiff
Assume selections containing :// are links of some kind
authorChristian Dywan <christian@twotoasts.de>
Wed, 28 Oct 2009 21:55:18 +0000 (22:55 +0100)
committerChristian Dywan <christian@twotoasts.de>
Wed, 28 Oct 2009 21:55:18 +0000 (22:55 +0100)
midori/midori-view.c

index d9de94e944da90e7d8b734f446bd20047aa7f72a..97e52e117ec7eb8d53f12c516b84791e6ee79f2d 100644 (file)
@@ -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, '@'))
             {