summaryrefslogtreecommitdiff
path: root/rplugin
diff options
context:
space:
mode:
Diffstat (limited to 'rplugin')
-rw-r--r--rplugin/python3/deoplete/child.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/rplugin/python3/deoplete/child.py b/rplugin/python3/deoplete/child.py
index 56b67d7..a32b118 100644
--- a/rplugin/python3/deoplete/child.py
+++ b/rplugin/python3/deoplete/child.py
@@ -369,15 +369,19 @@ class Child(logger.LoggingMixin):
for candidate in ctx['candidates']:
candidate['word'] = candidate['__save_word']
+ # Sort
+ sorters = [self._filters[x] for x
+ in source.sorters if x in self._filters]
+ for f in sorters:
+ self._process_filter(f, ctx, source.max_candidates)
+
# Note: converter may break candidates
ctx['candidates'] = copy.deepcopy(ctx['candidates'])
- # Sort and Convert
- sorters = [self._filters[x] for x
- in source.sorters if x in self._filters]
+ # Convert
converters = [self._filters[x] for x
in source.converters if x in self._filters]
- for f in sorters + converters:
+ for f in converters:
self._process_filter(f, ctx, source.max_candidates)
if (isinstance(ctx['candidates'], dict) and