Disallow :follow-hint outside of hint mode.

Fixes #1105.
This commit is contained in:
Florian Bruhin 2015-11-09 18:07:29 +01:00
parent 99e090db78
commit 35c36725f2

View File

@ -946,7 +946,8 @@ class HintManager(QObject):
elems.label.setInnerXml(string)
handler()
@cmdutils.register(instance='hintmanager', scope='tab', hide=True)
@cmdutils.register(instance='hintmanager', scope='tab', hide=True,
modes=[usertypes.KeyMode.hint])
def follow_hint(self, keystring=None):
"""Follow a hint.