summaryrefslogtreecommitdiff
path: root/rplugin
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2019-11-29 22:39:34 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2019-11-29 22:39:34 +0900
commit9a5aa6df55d974944b7b49612e33951041725e9f (patch)
tree2f6c57d4f5340e3507eb0ba6bca8aecebcf01495 /rplugin
parent41ab306416a951be661622d7b0d174fe74f84f7e (diff)
downloaddeoplete.nvim-9a5aa6df55d974944b7b49612e33951041725e9f.zip
Improve deepcopy()
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