summaryrefslogtreecommitdiff
path: root/autoload/deoplete
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2019-05-15 08:42:13 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2019-05-15 08:42:13 +0900
commit7c32aad0ddb06752143c78d4316c6183770b4981 (patch)
tree6436f00f7ca4bb300981787bd2c3a51d32d1617c /autoload/deoplete
parent2606d6c56f01e770e809ba38b1c982bb2efc619a (diff)
downloaddeoplete.nvim-7c32aad0ddb06752143c78d4316c6183770b4981.zip
Improve complete_info() check
Diffstat (limited to 'autoload/deoplete')
-rw-r--r--autoload/deoplete/mapping.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/deoplete/mapping.vim b/autoload/deoplete/mapping.vim
index 465d838..2798b4b 100644
--- a/autoload/deoplete/mapping.vim
+++ b/autoload/deoplete/mapping.vim
@@ -24,8 +24,8 @@ function! s:check_completion_info(candidates) abort
return 1
endif
- let old_candidates = map(copy(info.items), 'v:val.word')
- return map(copy(a:candidates), 'v:val.word') ==# old_candidates
+ let old_candidates = sort(map(copy(info.items), 'v:val.word'))
+ return sort(map(copy(a:candidates), 'v:val.word')) ==# old_candidates
endfunction
function! deoplete#mapping#_complete() abort
if s:check_completion_info(g:deoplete#_context.candidates)