Fix :follow-hint with an invalid keystring.
This commit is contained in:
parent
1aebefca18
commit
f3d76b5af6
@ -959,6 +959,8 @@ class HintManager(QObject):
|
|||||||
raise cmdexc.CommandError("No hint to follow")
|
raise cmdexc.CommandError("No hint to follow")
|
||||||
else:
|
else:
|
||||||
keystring = self._context.to_follow
|
keystring = self._context.to_follow
|
||||||
|
elif keystring not in self._context.elems:
|
||||||
|
raise cmdexc.CommandError("No hint {}!".format(keystring))
|
||||||
self.fire(keystring, force=True)
|
self.fire(keystring, force=True)
|
||||||
|
|
||||||
@pyqtSlot('QSize')
|
@pyqtSlot('QSize')
|
||||||
|
Loading…
Reference in New Issue
Block a user