Fix :follow-hint with an invalid keystring.

This commit is contained in:
Florian Bruhin 2015-11-09 18:16:59 +01:00
parent 1aebefca18
commit f3d76b5af6

View File

@ -959,6 +959,8 @@ class HintManager(QObject):
raise cmdexc.CommandError("No hint to follow")
else:
keystring = self._context.to_follow
elif keystring not in self._context.elems:
raise cmdexc.CommandError("No hint {}!".format(keystring))
self.fire(keystring, force=True)
@pyqtSlot('QSize')