From 4c9079ea54b669ee2d7d1240bced9250d607b124 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Mon, 6 Jun 2016 20:30:07 +0900 Subject: Fix #285 can disable source mark --- rplugin/python3/deoplete/deoplete.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'rplugin/python3') 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__) -- cgit v1.2.3