diff --git a/CHANGELOG.md b/CHANGELOG.md index 50e3845fa..c070a2beb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ CHANGELOG ### Fixed - Fix vim popup sign not showing.([#141](https://github.com/liuchengxu/vim-clap/pull/141)) +- Fix performance issue of async job.([#140](https://github.com/liuchengxu/vim-clap/issues/140)) ## [0.2] 2019-12-10 diff --git a/autoload/clap/forerunner.vim b/autoload/clap/forerunner.vim index 3f465ef21..a7224d4f2 100644 --- a/autoload/clap/forerunner.vim +++ b/autoload/clap/forerunner.vim @@ -158,7 +158,7 @@ else function! clap#forerunner#start(cmd) abort let s:chunks = [] let g:clap_forerunner_status_sign = g:clap_forerunner_status_sign_running - call clap#forerunner#refresh() + call clap#spinner#refresh() call clap#rooter#run(function('s:start_forerunner'), a:cmd) endfunction endif diff --git a/autoload/clap/provider/tags.vim b/autoload/clap/provider/tags.vim index 61acf219a..5030e49fd 100644 --- a/autoload/clap/provider/tags.vim +++ b/autoload/clap/provider/tags.vim @@ -7,15 +7,14 @@ set cpoptions&vim let s:tags = {} function! s:tags.source(...) abort - if !exists('t:vista') - let [bufnr, winnr, fname, fpath] = [ - \ g:clap.start.bufnr, - \ g:clap.start.winid, - \ bufname(g:clap.start.bufnr), - \ expand('#'.g:clap.start.bufnr.':p') - \ ] - call vista#source#Update(bufnr, winnr, fname, fpath) - endif + let [bufnr, winnr, fname, fpath] = [ + \ g:clap.start.bufnr, + \ g:clap.start.winid, + \ bufname(g:clap.start.bufnr), + \ expand('#'.g:clap.start.bufnr.':p') + \ ] + + call vista#source#Update(bufnr, winnr, fname, fpath) let [data, _, _] = call('vista#finder#GetSymbols', a:000)