diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index a02abf4e5..0cbf951cf 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -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)