Skip to content

Commit

Permalink
Fix for merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Apr 23, 2019
1 parent 1d58949 commit ca1ecf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
13 changes: 1 addition & 12 deletions rplugin/python3/denite/parent.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,7 @@ def _start_process(self):
self._child = Child(self._vim)

def _put(self, name, args):
queue_id = str(int(time.time() * 1000))
self._vim.vars['denite#_ret'] = {}

ret = self._child.main(name, args, queue_id=queue_id)
if not ret:
return

_ret = self._vim.vars['denite#_ret']
_ret[queue_id] = ret
self._vim.vars['denite#_ret'] = _ret

return self._vim.vars['denite#_ret'][queue_id]
return self._child.main(name, args, queue_id=None)

def _get(self, name, args):
return self._put(name, args)
Expand Down
4 changes: 2 additions & 2 deletions rplugin/python3/denite/ui/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ def __init__(self, vim):

def start(self, sources, context):
if not self._denite:
# self._denite = SyncParent(self._vim)
self._denite = ASyncParent(self._vim)
self._denite = SyncParent(self._vim)
# self._denite = ASyncParent(self._vim)

self._result = []
context['sources_queue'] = [sources]
Expand Down

0 comments on commit ca1ecf1

Please sign in to comment.