diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2016-06-06 20:30:07 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2016-06-06 20:30:07 +0900 |
commit | 4c9079ea54b669ee2d7d1240bced9250d607b124 (patch) | |
tree | b9a714a924d0df5cfaeaa129c406ac139c406790 /rplugin | |
parent | 2698f08c78c4862a972dfa10bed4fcd0a0fa9fa2 (diff) | |
download | deoplete.nvim-4c9079ea54b669ee2d7d1240bced9250d607b124.zip |
Fix #285 can disable source mark
Diffstat (limited to 'rplugin')
-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__) |