diff options
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -318,7 +318,7 @@ iGmCerts *certs_App(void) { | |||
318 | return app_.certs; | 318 | return app_.certs; |
319 | } | 319 | } |
320 | 320 | ||
321 | const iHistory *history_App(void) { | 321 | iHistory *history_App(void) { |
322 | return app_.history; | 322 | return app_.history; |
323 | } | 323 | } |
324 | 324 | ||
@@ -346,7 +346,9 @@ iBool handleCommand_App(const char *cmd) { | |||
346 | } | 346 | } |
347 | } | 347 | } |
348 | print_History(d->history); | 348 | print_History(d->history); |
349 | setUrl_DocumentWidget(findChild_Widget(root, "document"), url); | 349 | iDocumentWidget *doc = findChild_Widget(root, "document"); |
350 | setUrl_DocumentWidget(doc, url); | ||
351 | setInitialScroll_DocumentWidget(doc, argLabel_Command(cmd, "scroll") * gap_UI); | ||
350 | } | 352 | } |
351 | else if (equal_Command(cmd, "document.request.cancelled")) { | 353 | else if (equal_Command(cmd, "document.request.cancelled")) { |
352 | /* TODO: How should cancelled requests be treated in the history? */ | 354 | /* TODO: How should cancelled requests be treated in the history? */ |