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,9 +1179,11 @@ stop(Client *c, const Arg *arg) {
|
|||
static void
|
||||
titlechange(WebKitWebView *view, GParamSpec *pspec, Client *c) {
|
||||
const gchar *t = webkit_web_view_get_title(view);
|
||||
if (t) {
|
||||
c->title = copystr(&c->title, t);
|
||||
updatetitle(c);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
toggle(Client *c, const Arg *arg) {
|
||||
|
|
Loading…
Reference in New Issue