diff options
author | portix <portix@gmx.net> | 2013-05-28 14:46:03 +0200 |
---|---|---|
committer | portix <portix@gmx.net> | 2013-05-28 14:46:03 +0200 |
commit | 2871fb96a2c19be881bb3ee4e1f55a1720dcdaee (patch) | |
tree | e82a8808dece61bfeec85b6b59c117a378fb6a54 /src | |
parent | 698c8661be53e6686c0844a9f33a2d18cfa11479 (diff) | |
download | dwb-2871fb96a2c19be881bb3ee4e1f55a1720dcdaee.zip |
Call dwb_load_uri in commands_undo
Going to a history item ignores fragment-parts of a url, replacing it with
dwb_load_uri fixes this behaviour.
Diffstat (limited to 'src')
-rw-r--r-- | src/commands.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/commands.c b/src/commands.c index e9efe30a..2676420d 100644 --- a/src/commands.c +++ b/src/commands.c @@ -647,7 +647,9 @@ commands_undo(KeyMap *km, Arg *arg) { if (dwb.state.undo_list) { - WebKitWebView *web = WEBVIEW(view_add(NULL, false)); + + GList *gl = view_add(NULL, false); + WebKitWebView *web = WEBVIEW(gl); WebKitWebBackForwardList *bflist = webkit_web_back_forward_list_new_with_web_view(web); for (GList *l = dwb.state.undo_list->data; l; l=l->next) @@ -655,9 +657,10 @@ commands_undo(KeyMap *km, Arg *arg) Navigation *n = l->data; WebKitWebHistoryItem *item = webkit_web_history_item_new_with_data(n->first, n->second); - webkit_web_back_forward_list_add_item(bflist, item); if (!l->next) - webkit_web_view_go_to_back_forward_item(web, item); + dwb_load_uri(gl, n->first); + else + webkit_web_back_forward_list_add_item(bflist, item); dwb_navigation_free(n); } |