diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-01 09:46:33 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-01 09:49:25 +0200 |
commit | 49bda577d061dd3949939f0ef959b8daaec45a95 (patch) | |
tree | a85016ae6228695d8f9f965b863fb6e465ba4bb2 /src/ui/documentwidget.c | |
parent | 49b06b58a9d2e05d47d7e60c8d141208f4e7e733 (diff) |
DocumentWidget: Allow reloading the current URL
IssueID #129
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r-- | src/ui/documentwidget.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 87a55dcb..7fffc214 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -3345,16 +3345,11 @@ void deserializeState_DocumentWidget(iDocumentWidget *d, iStream *ins) { | |||
3345 | 3345 | ||
3346 | void setUrlFromCache_DocumentWidget(iDocumentWidget *d, const iString *url, iBool isFromCache) { | 3346 | void setUrlFromCache_DocumentWidget(iDocumentWidget *d, const iString *url, iBool isFromCache) { |
3347 | d->flags &= ~showLinkNumbers_DocumentWidgetFlag; | 3347 | d->flags &= ~showLinkNumbers_DocumentWidgetFlag; |
3348 | if (cmpStringSc_String(d->mod.url, url, &iCaseInsensitive)) { | 3348 | set_String(d->mod.url, url); |
3349 | set_String(d->mod.url, url); | 3349 | /* See if there a username in the URL. */ |
3350 | /* See if there a username in the URL. */ | 3350 | parseUser_DocumentWidget_(d); |
3351 | parseUser_DocumentWidget_(d); | 3351 | if (!isFromCache || !updateFromHistory_DocumentWidget_(d)) { |
3352 | if (!isFromCache || !updateFromHistory_DocumentWidget_(d)) { | 3352 | fetch_DocumentWidget_(d); |
3353 | fetch_DocumentWidget_(d); | ||
3354 | } | ||
3355 | } | ||
3356 | else { | ||
3357 | postCommandf_App("document.changed doc:%p url:%s", d, cstr_String(d->mod.url)); | ||
3358 | } | 3353 | } |
3359 | } | 3354 | } |
3360 | 3355 | ||