summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2016-08-07 11:10:46 +0200
committerFlorian Bruhin <git@the-compiler.org>2016-08-07 11:21:33 +0200
commit17840d06da396153472261b8d9ba2ca3494db3ce (patch)
treea461bc785a3e17ed8fb59f837aac149329f7c7b0
parente9e2adb9a7bae733d16ba588b999b39225d3432e (diff)
downloadqutebrowser-17840d06da396153472261b8d9ba2ca3494db3ce.tar.gz
qutebrowser-17840d06da396153472261b8d9ba2ca3494db3ce.zip
keyconfig: Validate commands *after* transforming
Otherwise we'd still get an error when e.g. transforming :yank-selected to :yank selection as :yank-selected got removed.
-rw-r--r--qutebrowser/config/parsers/keyconf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/config/parsers/keyconf.py b/qutebrowser/config/parsers/keyconf.py
index b2596fb62..68450d54a 100644
--- a/qutebrowser/config/parsers/keyconf.py
+++ b/qutebrowser/config/parsers/keyconf.py
@@ -361,12 +361,12 @@ class KeyConfigParser(QObject):
raise KeyConfigError("Got command '{}' without getting a "
"section!".format(line))
else:
- self._validate_command(line)
for rgx, repl in configdata.CHANGED_KEY_COMMANDS:
if rgx.match(line):
line = rgx.sub(repl, line)
self._mark_config_dirty()
break
+ self._validate_command(line)
self._cur_command = line
def _read_keybinding(self, line):