diff options
author | Florian Bruhin <git@the-compiler.org> | 2015-04-13 21:21:26 +0200 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2015-04-13 21:21:26 +0200 |
commit | 982733e1f4c971b96b9e6a6c9a26589f296f0398 (patch) | |
tree | e9172412e6012a052dd2dbd758f934acf0702108 | |
parent | 4e18e54803e00b3a8e17d820028a4812f8d6d115 (diff) | |
download | qutebrowser-982733e1f4c971b96b9e6a6c9a26589f296f0398.tar.gz qutebrowser-982733e1f4c971b96b9e6a6c9a26589f296f0398.zip |
Allow commands with ;; with :bind.
-rw-r--r-- | qutebrowser/config/parsers/keyconf.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qutebrowser/config/parsers/keyconf.py b/qutebrowser/config/parsers/keyconf.py index 824841a21..e43dc07e9 100644 --- a/qutebrowser/config/parsers/keyconf.py +++ b/qutebrowser/config/parsers/keyconf.py @@ -156,10 +156,10 @@ class KeyConfigParser(QObject): for m in mode.split(','): if m not in configdata.KEY_DATA: raise cmdexc.CommandError("Invalid mode {}!".format(m)) - split_cmd = command.split() - if split_cmd[0] not in cmdutils.cmd_dict: - raise cmdexc.CommandError("Invalid command {}!".format( - split_cmd[0])) + try: + self._validate_command(command) + except KeyConfigError as e: + raise cmdexc.CommandError(str(e)) try: self._add_binding(mode, key, command, force=force) except DuplicateKeychainError as e: |