-
-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
77 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,7 @@ | |
|
||
from deoplete import logger | ||
from deoplete.parent import Parent | ||
from deoplete.util import (error_tb, find_rplugins) | ||
# from deoplete.util import error | ||
from deoplete.util import (error_tb, find_rplugins, error) | ||
|
||
|
||
class Deoplete(logger.LoggingMixin): | ||
|
@@ -27,6 +26,10 @@ def __init__(self, vim): | |
self._max_parents = max( | ||
[1, self._vim.vars['deoplete#num_processes']]) | ||
|
||
if self._max_parents > 1 and not hasattr(self._vim, 'loop'): | ||
error(self._vim, 'neovim-python 0.2.4+ is required.') | ||
return | ||
|
||
# Enable logging before "Init" for more information, and e.g. | ||
# deoplete-jedi picks up the log filename from deoplete's handler in | ||
# its on_init. | ||
|
@@ -82,7 +85,8 @@ def completion_begin(self, context): | |
# Check the previous completion | ||
prev_candidates = context['vars'][ | ||
'deoplete#_prev_completion']['candidates'] | ||
if context['event'] == 'Async' and candidates == prev_candidates: | ||
if (context['event'] == 'Async' and | ||
not prev_candidates and candidates == prev_candidates): | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
blueyed
Contributor
|
||
return | ||
|
||
# error(self._vim, candidates) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The condition looks strange. Should the last and be an or?