commit a526f3ebd00fa568afc87f6869fffced402d8fa6 from: Omar Polo date: Fri Feb 02 13:38:08 2024 UTC make cmd_home more robust look exactly for /~user/, not just for a tilde that happens to be inside the path like~this. commit - 63334f7f907a0ce60b89fca153bac47dd6ef398a commit + a526f3ebd00fa568afc87f6869fffced402d8fa6 blob - 6432f67d4568e5bd4e10fda23d48d6c2a7bff393 blob + f0bf316ca2ca85c7efad6ecfa3d4bc3f73e22cb5 --- cmd.c +++ cmd.c @@ -1073,9 +1073,9 @@ cmd_home(struct buffer *buffer) strlcpy(path, current_tab->iri.iri_path, sizeof(path)); - if ((tilde = strchr(path, '~')) != NULL && - tilde[1] != '\0' && tilde[1] != '/') { - if ((t = strchr(tilde, '/')) != NULL) + if ((tilde = strstr(path, "/~")) != NULL && + tilde[2] != '\0' && tilde[2] != '/') { + if ((t = strchr(tilde + 2, '/')) != NULL) *++t = '\0'; load_url_in_tab(current_tab, path, NULL, LU_MODE_NOCACHE); } else