Skip to content

Commit

Permalink
Fix unite candidates length
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Apr 21, 2014
1 parent c47d28e commit 8ee4ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/unite/candidates.vim
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ function! unite#candidates#_recache(input, is_force) "{{{
let source.unite__candidates =
\ unite#init#_candidates_source(
\ source.unite__context.candidates, source.name)
let source.unite__len_candidates = len(source.unite__candidates)
endfor

" Update async state.
Expand Down Expand Up @@ -298,7 +299,6 @@ function! s:recache_candidates_loop(context, is_force) "{{{
let a:context.execute_command = context.execute_command

let source.unite__candidates += source_candidates
let source.unite__len_candidates = len(source_candidates)
if !empty(source_candidates)
call add(candidate_sources,
\ unite#helper#convert_source_name(source.name))
Expand Down

0 comments on commit 8ee4ce8

Please sign in to comment.