Skip to content

Commit

Permalink
Always update source info of vista for tags provider
Browse files Browse the repository at this point in the history
Also update the CHANGELOG.md and fix typo.
  • Loading branch information
liuchengxu committed Dec 29, 2019
1 parent 3f0d00c commit 55ef5b4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion autoload/clap/forerunner.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 8 additions & 9 deletions autoload/clap/provider/tags.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 55ef5b4

Please sign in to comment.