Get normal parser via objreg
This commit is contained in:
parent
e906178c7d
commit
20636a2343
@ -956,8 +956,9 @@ class HintManager(QObject):
|
||||
filterstr is not None):
|
||||
# apply auto-follow-timeout
|
||||
timeout = config.get('hints', 'auto-follow-timeout')
|
||||
man_inst = modeman.instance(self._win_id)
|
||||
normal_parser = man_inst._parsers[usertypes.KeyMode.normal]
|
||||
keyparsers = objreg.get('keyparsers', scope='window',
|
||||
window=self._win_id)
|
||||
normal_parser = keyparsers[usertypes.KeyMode.normal]
|
||||
normal_parser.set_inhibited_timeout(timeout)
|
||||
# unpacking gets us the first (and only) key in the dict.
|
||||
self.fire(*visible)
|
||||
|
Loading…
Reference in New Issue
Block a user