diff options
Diffstat (limited to 'doc/api.md')
-rw-r--r-- | doc/api.md | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/api.md b/doc/api.md index ac928baf..0480e901 100644 --- a/doc/api.md +++ b/doc/api.md @@ -110,9 +110,12 @@ Same as `pager.load(url + "\n")`.</td> </tr> <tr> -<td>`gotoURL(url)`</td> +<td>`gotoURL(url, options = {replace: null, contentType: null})`</td> <td>Go to the specified URL immediately (without a prompt). This differs from `load` and `loadSubmit` in that it *does not* try to correct the URL.<br> +When `replace` is set, the new buffer may replace the old one if it loads +successfully. When `contentType` is set, the new buffer's content type is +forcefully set to that string.<br> Use this for loading automatically retrieved (i.e. non-user-provided) URLs.</td> </tr> |