summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2013-05-28 14:46:03 +0200
committerportix <portix@gmx.net>2013-05-28 14:46:03 +0200
commit2871fb96a2c19be881bb3ee4e1f55a1720dcdaee (patch)
treee82a8808dece61bfeec85b6b59c117a378fb6a54
parent698c8661be53e6686c0844a9f33a2d18cfa11479 (diff)
downloaddwb-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.
-rw-r--r--src/commands.c9
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);
}