Fix UnboundLocalError in :unbind
This commit is contained in:
parent
119f01bd5f
commit
2fb186efcd
@ -201,7 +201,7 @@ class KeyConfigParser(QObject):
|
||||
sect = self.keybindings[mode]
|
||||
except KeyError:
|
||||
raise cmdexc.CommandError("Can't find mode section '{}'!".format(
|
||||
sect))
|
||||
mode))
|
||||
try:
|
||||
del sect[key]
|
||||
except KeyError:
|
||||
|
Loading…
Reference in New Issue
Block a user