History: don't update if there's no content.

Fixes #2566.
This commit is contained in:
John-Mark Bell 2018-01-20 18:47:26 +00:00
parent fe45bc1dbe
commit 7a75ec1576

View File

@ -601,7 +601,9 @@ nserror browser_window_history_go(struct browser_window *bw,
url, NULL, bw, NULL);
history->current = current;
} else {
if (bw->current_content != NULL) {
browser_window_history_update(bw, bw->current_content);
}
history->current = entry;
error = browser_window_navigate(bw, url, NULL,
BW_NAVIGATE_NO_TERMINAL_HISTORY_UPDATE,