diff options
Diffstat (limited to 'rplugin/python3/deoplete/deoplete.py')
-rw-r--r-- | rplugin/python3/deoplete/deoplete.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/rplugin/python3/deoplete/deoplete.py b/rplugin/python3/deoplete/deoplete.py index b6db9c5..82326ce 100644 --- a/rplugin/python3/deoplete/deoplete.py +++ b/rplugin/python3/deoplete/deoplete.py @@ -168,7 +168,8 @@ class Deoplete(logger.LoggingMixin): mark = source.mark + ' ' for candidate in candidates: candidate['icase'] = 1 - if candidate.get('menu', '').find(mark) != 0: + if source.mark != '' and candidate.get( + 'menu', '').find(mark) != 0: candidate['menu'] = mark + candidate.get('menu', '') # self.debug(context['candidates']) @@ -298,8 +299,6 @@ class Deoplete(logger.LoggingMixin): 'converters', source.converters) source.mark = get_custom(self.__vim, source.name).get( 'mark', source.mark) - if source.mark == '': - source.mark = '[' + source.name + ']' self.__sources[source.name] = source self.debug('Loaded Source: %s (%s)', name, module.__file__) |