From: Daniel Carl <danielcarl@gmx.de>
Date: Mon, 29 Jul 2013 13:43:41 +0000 (+0200)
Subject: Don't put 'about:*' uri into history.
X-Git-Url: https://git.owens.tech/assets/wrapped.html/assets/wrapped.html/git?a=commitdiff_plain;h=611f8ff8c73531fd8a0dfce2e8580ff527c4d2d4;p=vimb.git

Don't put 'about:*' uri into history.
---

diff --git a/src/main.c b/src/main.c
index 10f0165..6af9d72 100644
--- a/src/main.c
+++ b/src/main.c
@@ -471,8 +471,9 @@ static void webview_load_status_cb(WebKitWebView *view, GParamSpec *pspec)
             vb_update_statusbar();
 
             dom_check_auto_insert(view);
-
-            history_add(HISTORY_URL, uri, webkit_web_view_get_title(view));
+            if (strncmp(uri, "about:", 6)) {
+                history_add(HISTORY_URL, uri, webkit_web_view_get_title(view));
+            }
             break;
 
         case WEBKIT_LOAD_FAILED: