Prevent title from being empty when following an anchor
Signed-off-by: Christoph Lohmann <20h@r-36.net>
This commit is contained in:
parent
3cc5f87db8
commit
618c3dfd52
2
surf.c
2
surf.c
|
@ -1179,8 +1179,10 @@ stop(Client *c, const Arg *arg) {
|
||||||
static void
|
static void
|
||||||
titlechange(WebKitWebView *view, GParamSpec *pspec, Client *c) {
|
titlechange(WebKitWebView *view, GParamSpec *pspec, Client *c) {
|
||||||
const gchar *t = webkit_web_view_get_title(view);
|
const gchar *t = webkit_web_view_get_title(view);
|
||||||
|
if (t) {
|
||||||
c->title = copystr(&c->title, t);
|
c->title = copystr(&c->title, t);
|
||||||
updatetitle(c);
|
updatetitle(c);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue