diff options
Diffstat (limited to 'desktop/browser.c')
-rw-r--r-- | desktop/browser.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/desktop/browser.c b/desktop/browser.c index 525d18b5d..dacea8e1d 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -108,7 +108,10 @@ void browser_window_create(const char *url, struct browser_window *clone, bw->current_content = NULL; bw->loading_content = NULL; - bw->history = history_create(); + if (!clone) + bw->history = history_create(); + else + bw->history = history_clone(clone->history); bw->sel = selection_create(bw); bw->throbbing = false; bw->caret_callback = NULL; |