summaryrefslogtreecommitdiff
path: root/rplugin
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2019-08-31 13:10:52 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2019-08-31 13:10:52 +0900
commit93722cc5d0a1877fdad0845330b3a41c5e392a34 (patch)
tree7e524bf808e985e41d8bcabda38d2630a4d5e954 /rplugin
parent19a089acb7d007b0ad573eca1b5828740870816b (diff)
downloaddeoplete.nvim-93722cc5d0a1877fdad0845330b3a41c5e392a34.zip
Fix #1006 workaround for manual_complete()
Diffstat (limited to 'rplugin')
-rw-r--r--rplugin/python3/deoplete/deoplete.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rplugin/python3/deoplete/deoplete.py b/rplugin/python3/deoplete/deoplete.py
index 1ccd78c..dbdae83 100644
--- a/rplugin/python3/deoplete/deoplete.py
+++ b/rplugin/python3/deoplete/deoplete.py
@@ -93,7 +93,8 @@ class Deoplete(logger.LoggingMixin):
position = -1
candidates = []
- if needs_poll:
+ # Todo: If max_parents is 1, async completion does not work...
+ if self._max_parents != 1 and needs_poll:
self._vim.call('deoplete#handler#_async_timer_start')
if not candidates: