From e06c2052a07460e307fa7f0f6f7ca6a4ffd6841a Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 13 Mar 2011 14:50:21 +0100 Subject: [PATCH] Don't show link numbers if there is no href Those can't actually be opened so it's confusing. --- 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 0e7558e3..39bdb895 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -1870,7 +1870,7 @@ gtk_widget_key_press_event_cb (WebKitWebView* web_view, " var child = document.createElement ('span');" " child.setAttribute ('class', 'midoriHKD87346');" " child.appendChild (document.createTextNode (i));" - " if (links[i].insertBefore)" + " if (links[i].insertBefore && links[i].href)" " links[i].insertBefore (child); }", NULL); view->find_links = 0; -- 2.39.5