Since I do not use any history or bookmarks, for a very long time it bugged me that if you misspell address and page is not found, when you try to edit address you do not get what you have entered, but get "about:blank" instead.
I would consider it a bug since other browsers let you edit urls if they are not found. This super minor patch fixes this issue. The fix is however with some caveats. It will only allow editing url after opening and not finding page; if you then go to other address and go back (or go back and go forward to this not found address) it will give url it will give incorrect url (one from previously opened valid/foudn page). I tried to fix that, but there are some complications that I was not able to resolve yet, so for now I left i at this. This basically solves my main gripe, and is just one line change.
diff --git a/surf.c b/surf.c index d970f7f..8932fba 100644 --- a/surf.c +++ b/surf.c @@ -635,6 +635,7 @@ loaduri(Client *c, const Arg *arg) { : g_strdup_printf("http://%s", uri); } + setatom(c, AtomUri, uri); /* prevents endless loop */ if(strcmp(u, geturi(c)) == 0) { reload(c, &a);