diff options
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -2244,7 +2244,8 @@ iBool handleCommand_App(const char *cmd) { | |||
2244 | } | 2244 | } |
2245 | else if (equal_Command(cmd, "open")) { | 2245 | else if (equal_Command(cmd, "open")) { |
2246 | iString *url = collectNewCStr_String(suffixPtr_Command(cmd, "url")); | 2246 | iString *url = collectNewCStr_String(suffixPtr_Command(cmd, "url")); |
2247 | const iBool noProxy = argLabel_Command(cmd, "noproxy"); | 2247 | const iBool noProxy = argLabel_Command(cmd, "noproxy") != 0; |
2248 | const iBool fromSidebar = argLabel_Command(cmd, "fromsidebar") != 0; | ||
2248 | iUrl parts; | 2249 | iUrl parts; |
2249 | init_Url(&parts, url); | 2250 | init_Url(&parts, url); |
2250 | if (argLabel_Command(cmd, "default") || equalCase_Rangecc(parts.scheme, "mailto") || | 2251 | if (argLabel_Command(cmd, "default") || equalCase_Rangecc(parts.scheme, "mailto") || |
@@ -2295,7 +2296,9 @@ iBool handleCommand_App(const char *cmd) { | |||
2295 | else { | 2296 | else { |
2296 | urlEncodePath_String(url); | 2297 | urlEncodePath_String(url); |
2297 | } | 2298 | } |
2298 | setUrlFromCache_DocumentWidget(doc, url, isHistory); | 2299 | setUrlFlags_DocumentWidget(doc, url, |
2300 | (isHistory ? useCachedContentIfAvailable_DocumentWidgetSetUrlFlag : 0) | | ||
2301 | (fromSidebar ? openedFromSidebar_DocumentWidgetSetUrlFlag : 0)); | ||
2299 | /* Optionally, jump to a text in the document. This will only work if the document | 2302 | /* Optionally, jump to a text in the document. This will only work if the document |
2300 | is already available, e.g., it's from "about:" or restored from cache. */ | 2303 | is already available, e.g., it's from "about:" or restored from cache. */ |
2301 | const iRangecc gotoHeading = range_Command(cmd, "gotoheading"); | 2304 | const iRangecc gotoHeading = range_Command(cmd, "gotoheading"); |