[hackers] [surf] Fix title handling || Ivan Tham
commit 9fa4ffef72308e75446aeeebc9d38140b7198640
Author: Ivan Tham <pickfire_AT_riseup.net>
AuthorDate: Wed Dec 2 21:16:23 2015 +0800
Commit: Christoph Lohmann <20h_AT_r-36.net>
CommitDate: Sat Dec 12 11:54:28 2015 +0100
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_AT_r-36.net>
diff --git a/surf.c b/surf.c
index ae92188..ea0e260 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -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));
Received on Sat Dec 12 2015 - 11:54:56 CET
This archive was generated by hypermail 2.3.0
: Sat Dec 12 2015 - 12:00:14 CET