summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2018-01-20 18:47:26 +0000
committerJohn-Mark Bell <jmb@netsurf-browser.org>2018-01-20 18:47:26 +0000
commit7a75ec1576fc2a4f3d445b33b1d9f00e0007643d (patch)
tree624b8371b30c2ec8fd50c6e59b9624217cafa910 /desktop
parentfe45bc1dbea417c2258a22797ace09926b33a481 (diff)
downloadnetsurf-7a75ec1576fc2a4f3d445b33b1d9f00e0007643d.tar.gz
netsurf-7a75ec1576fc2a4f3d445b33b1d9f00e0007643d.tar.bz2
History: don't update if there's no content.
Fixes #2566.
Diffstat (limited to 'desktop')
-rw-r--r--desktop/browser_history.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/browser_history.c b/desktop/browser_history.c
index 640302773..d9db0eb18 100644
--- a/desktop/browser_history.c
+++ b/desktop/browser_history.c
@@ -601,7 +601,9 @@ nserror browser_window_history_go(struct browser_window *bw,
url, NULL, bw, NULL);
history->current = current;
} else {
- browser_window_history_update(bw, bw->current_content);
+ 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,