about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2011-02-17 18:56:15 +0000
committerMarco Peereboom <marco@conformal.com>2011-02-17 18:56:15 +0000
commit2f8dd93af9aa56451426c394fa196f8d767e2999 (patch)
tree5ffb81634b61f664a9509ef9dc0041edbf0a34ab
parent0c1cd0f1a773c0a2ef5bc4ffd66f8a4eed8d9695 (diff)
downloadxombrero-2f8dd93af9aa56451426c394fa196f8d767e2999.tar.gz
FS #56
-rw-r--r--xxxterm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/xxxterm.c b/xxxterm.c
index 0b7e52c..187586c 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -1202,15 +1202,18 @@ load_uri(struct tab *t, gchar *uri)
 {
 	gchar		*newuri = NULL;
 
-	if (uri == NULL || !strlen(uri))
+	if (uri == NULL)
 		return;
 
 	/* Strip leading spaces. */
 	while(*uri && isspace(*uri))
 		uri++;
 
-	if (!strlen(uri))
+	if (strlen(uri) == 0 || !strcmp(uri, "about:blank")) {
+		newuri = "";
+		webkit_web_view_load_uri(t->wv, newuri);
 		return;
+	}
 
 	if (valid_url_type(uri)) {
 		newuri = guess_url_type(uri);