Skip to content

Commit

Permalink
- Fixed resume error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Dec 13, 2012
1 parent c78c8b4 commit 34a3633
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions autoload/unite/sources/help.vim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
" help source for unite.vim
" Version: 0.0.3
" Last Change: 16 Oct 2012.
" Last Change: 13 Dec 2012.
" Author: tsukkee <takayuki0510 at gmail.com>
" Licence: The MIT License {{{
" Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down Expand Up @@ -31,6 +31,8 @@ let s:Cache = vital#of('unite.vim').import('System.Cache')

" cache
let s:cache = []
let s:cont_number = 0
let s:cont_max = 0
function! unite#sources#help#refresh()
let s:cache = []

Expand Down Expand Up @@ -113,8 +115,8 @@ function! s:source.gather_candidates(args, context)
let s:vimproc_files[tagfile] = file
endfor

let a:context.source__cont_number = 1
let a:context.source__cont_max = len(s:vimproc_files)
let s:cont_number = 1
let s:cont_max = len(s:vimproc_files)

return []
endfunction
Expand All @@ -134,8 +136,7 @@ function! s:source.async_gather_candidates(args, context)

call unite#print_source_message(
\ printf('[%2d/%2d] Making cache of "%s"...%d%%',
\ a:context.source__cont_number,
\ a:context.source__cont_max,
\ s:cont_number, s:cont_max,
\ file.path, progress), s:source.name)

for line in lines
Expand All @@ -159,7 +160,7 @@ function! s:source.async_gather_candidates(args, context)
if file.proc.eof
call file.proc.close()
call remove(s:vimproc_files, key)
let a:context.source__cont_number += 1
let s:cont_number += 1
endif
endfor

Expand Down

0 comments on commit 34a3633

Please sign in to comment.