From 1b3664d9c8a858115a484b765cc37c3734b7f614 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 7 Aug 2016 11:10:46 +0200 Subject: [PATCH] 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. --- qutebrowser/config/parsers/keyconf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):