diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-05-13 13:04:13 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-05-13 13:04:13 +0200 |
commit | ee0347ba2f381b299039f66eaf2c530fbf354c72 (patch) | |
tree | 9cd05259ce2d868b6d56e29eba7591c589c1c3af /qutebrowser/config | |
parent | b03b03bdf6e02e13b348689bf7b18196432f232b (diff) | |
parent | a36efcf6b5b08666c2a65f8d2eef90eaba832fe6 (diff) | |
download | qutebrowser-ee0347ba2f381b299039f66eaf2c530fbf354c72.tar.gz qutebrowser-ee0347ba2f381b299039f66eaf2c530fbf354c72.zip |
Merge remote-tracking branch 'origin/pr/6462'
Diffstat (limited to 'qutebrowser/config')
-rw-r--r-- | qutebrowser/config/config.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qutebrowser/config/config.py b/qutebrowser/config/config.py index 374019677..69f3ca2cc 100644 --- a/qutebrowser/config/config.py +++ b/qutebrowser/config/config.py @@ -173,6 +173,8 @@ class KeyConfig: result = results[0] if result.cmd.name != "set-cmd-text": return cmdline + if not result.args: + return None # doesn't look like this sets a command *flags, cmd = result.args if "-a" in flags or "--append" in flags or not cmd.startswith(":"): return None # doesn't look like this sets a command |