]> git.gir.st - VimFx.git/commit
Partly revert "Use `prefs.get` directly in events-frame.coffee"
authorSimon Lydell <simon.lydell@gmail.com>
Mon, 22 Aug 2016 18:10:03 +0000 (20:10 +0200)
committerSimon Lydell <simon.lydell@gmail.com>
Mon, 22 Aug 2016 18:10:03 +0000 (20:10 +0200)
commit5ce64b1295cea70c5a789090f8ca33a9bb3610d4
tree2785494f8bb1543ed409e2636eccf37d0b9c5f80
parent20418d619502ac00a4a81dca850ce411ea9af38d
Partly revert "Use `prefs.get` directly in events-frame.coffee"

This partly reverts commit e7f361942c2b07234e889804975e93c21c1f5baf.

That commit switched to using `prefs.get` directly in
events-frame.coffee instead of using `messageManager.get`. That avoids
synchronous messages, which is a good thing.

However, I forgot that when doing so, `vimfx.addOptionOverrides` won't
take effect.

This commit partly reverts to getting options via synchronous messages
again. In the very frequent 'keydown' event direct `prefs.get` is still
used for the unlikely-to-be-overridden `focus_previous_key` and
`focus_next_key` prefs, while synchronous messaging is used in the less
frequent 'focus' event, which enables the use case of overriding
`prevent_autofocus` on select pages.
extension/lib/events-frame.coffee
extension/lib/vim-frame.coffee
extension/lib/vim.coffee
Imprint / Impressum