summaryrefslogtreecommitdiff
path: root/rplugin
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2016-11-09 21:28:06 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2016-11-09 21:28:06 +0900
commit5053fb69bbd26c65dd29e0acd04caf48aa5aa540 (patch)
tree0914ba283181ec93d343e3415d520e07e4f32b8f /rplugin
parentc832f9d176c78a439617d39a6b0393e476a88868 (diff)
downloaddeoplete.nvim-5053fb69bbd26c65dd29e0acd04caf48aa5aa540.zip
Fix #378 omni source error
Diffstat (limited to 'rplugin')
-rw-r--r--rplugin/python3/deoplete/source/omni.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/rplugin/python3/deoplete/source/omni.py b/rplugin/python3/deoplete/source/omni.py
index 3a49f4d..0a89303 100644
--- a/rplugin/python3/deoplete/source/omni.py
+++ b/rplugin/python3/deoplete/source/omni.py
@@ -49,18 +49,6 @@ class Source(Base):
if omnifunc == '' or not self.vim.call(
'deoplete#util#exists_omnifunc', omnifunc):
continue
- if omnifunc in [
- 'ccomplete#Complete',
- 'htmlcomplete#CompleteTags',
- 'phpcomplete#CompletePHP']:
- # In the blacklist
- error_vim(self.vim,
- 'omni source does not support omnifunction: ' +
- omnifunc)
- error_vim(self.vim,
- 'You must use g:deoplete#omni_patterns' +
- ' instead.')
- continue
self.__omnifunc = omnifunc
for input_pattern in convert2list(
get_buffer_config(context, filetype,
@@ -75,6 +63,18 @@ class Source(Base):
'Manual' and m is None):
continue
+ if self.__omnifunc in [
+ 'ccomplete#Complete',
+ 'htmlcomplete#CompleteTags',
+ 'phpcomplete#CompletePHP']:
+ # In the blacklist
+ error_vim(self.vim,
+ 'omni source does not support: ' +
+ self.__omnifunc)
+ error_vim(self.vim,
+ 'You must use g:deoplete#omni_patterns' +
+ ' instead.')
+ return -1
try:
complete_pos = self.vim.call(self.__omnifunc, 1, '')
except: