summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authorIvan Tham <pickfire@riseup.net>2015-12-02 21:16:23 +0800
committerChristoph Lohmann <20h@r-36.net>2015-12-12 11:54:28 +0100
commit9fa4ffef72308e75446aeeebc9d38140b7198640 (patch)
tree2d35c84f74840f13b44c7b9ade492886c4f800c0 /surf.c
parent002e82d188d286f27ba5806939d51ed9df5857ef (diff)
downloadsurf-9fa4ffef72308e75446aeeebc9d38140b7198640.tar.gz
surf-9fa4ffef72308e75446aeeebc9d38140b7198640.tar.bz2
surf-9fa4ffef72308e75446aeeebc9d38140b7198640.zip
Fix title handling
1. file:/// stay the same when you navigate 2. Fix "http://~" to "file://~" in home dir 3. Expands "file://~" to "file://home/user" Thanks to quinq for fixing the issue #1 in commit 934705c in surf2. Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/surf.c b/surf.c
index ae92188..ea0e260 100644
--- a/surf.c
+++ b/surf.c
@@ -802,6 +802,7 @@ loadstatuschange(WebKitWebView *view, GParamSpec *pspec, Client *c)
& SOUP_MESSAGE_CERTIFICATE_TRUSTED);
}
setatom(c, AtomUri, uri);
+ c->title = copystr(&c->title, uri);
if (enablestyle)
setstyle(c, getstyle(uri));