diff options
author | Marco Peereboom <marco@conformal.com> | 2011-02-17 18:56:15 +0000 |
---|---|---|
committer | Marco Peereboom <marco@conformal.com> | 2011-02-17 18:56:15 +0000 |
commit | 2f8dd93af9aa56451426c394fa196f8d767e2999 (patch) | |
tree | 5ffb81634b61f664a9509ef9dc0041edbf0a34ab | |
parent | 0c1cd0f1a773c0a2ef5bc4ffd66f8a4eed8d9695 (diff) | |
download | xombrero-2f8dd93af9aa56451426c394fa196f8d767e2999.tar.gz |
FS #56
-rw-r--r-- | xxxterm.c | 7 |
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); |