diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2019-08-25 19:36:32 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2019-08-25 19:36:32 +0900 |
commit | 505b88368d4433c29bae18abcb31a53c7810aa4e (patch) | |
tree | 1cf1453d7f84ab98d55f5162093585f403115092 /rplugin | |
parent | 4cf04ac724bfd25d8595a4224c4dc541c435c1a6 (diff) | |
download | deoplete.nvim-505b88368d4433c29bae18abcb31a53c7810aa4e.zip |
Fix #1008 auto_complete behavior
Diffstat (limited to 'rplugin')
-rw-r--r-- | rplugin/python3/deoplete/child.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/rplugin/python3/deoplete/child.py b/rplugin/python3/deoplete/child.py index 0cf1c6b..5972b09 100644 --- a/rplugin/python3/deoplete/child.py +++ b/rplugin/python3/deoplete/child.py @@ -392,8 +392,15 @@ class Child(logger.LoggingMixin): ctx['candidates'] = source.on_post_filter(ctx) mark = source.mark + ' ' - refresh = self._vim.call( + + refresh = False + refresh_always = self._vim.call( 'deoplete#custom#_get_option', 'refresh_always') + auto_complete = self._vim.call( + 'deoplete#custom#_get_option', 'auto_complete') + if refresh_always and auto_complete: + refresh = True + for candidate in ctx['candidates']: candidate['icase'] = 1 candidate['equal'] = refresh |