commit - a18fc6de7bcd33fbb84dccc52a723b72028df366
commit + dafcab64a97f5daea5add550e3d029faac3765aa
blob - 344c70e5943a87ab1de510d3cbe67704b4ad5932
blob + 3677a37fdf65203a8209a0bbff32432245163cda
--- parser.c
+++ parser.c
r = tab->buffer.page.free(&tab->buffer.page);
- /* fallback to the host as title if nothing else */
if (*tab->buffer.page.title != '\0')
return r;
+ /*
+ * heuristic: see if there is a "tilde user" and use that as
+ * page title, using the full domain name as fallback.
+ */
if ((tilde = strstr(tab->hist_cur->h, "/~")) != NULL) {
strlcpy(tab->buffer.page.title, tilde+1,
sizeof(tab->buffer.page.title));