diff options
-rw-r--r-- | qutebrowser/commands/runners.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/qutebrowser/commands/runners.py b/qutebrowser/commands/runners.py index 01a9c7edd..c8da8decc 100644 --- a/qutebrowser/commands/runners.py +++ b/qutebrowser/commands/runners.py @@ -55,9 +55,12 @@ def _init_variable_replacements() -> Mapping[str, _ReplacementFunction]: """Return a dict from variable replacements to fns processing them.""" replacements: Dict[str, _ReplacementFunction] = { 'url': lambda tb: _url(tb).toString( - QUrl.ComponentFormattingOption.FullyEncoded | QUrl.UrlFormattingOption.RemovePassword), + + QUrl.UrlFormattingOption.RemovePassword |QUrl.ComponentFormattingOption.FullyEncoded), 'url:pretty': lambda tb: _url(tb).toString( - QUrl.ComponentFormattingOption.DecodeReserved | QUrl.UrlFormattingOption.RemovePassword), + QUrl.UrlFormattingOption.RemovePassword | + QUrl.ComponentFormattingOption.DecodeReserved + ), 'url:domain': lambda tb: "{}://{}{}".format( _url(tb).scheme(), _url(tb).host(), ":" + str(_url(tb).port()) if _url(tb).port() != -1 else ""), |