[vim][autotags] add path to cscope whand adding new db
This commit is contained in:
parent
a5f0f8f0ba
commit
4da464f63c
@ -250,7 +250,7 @@ fun! s:AutotagsSearchLoadTags()
|
|||||||
" search cscope db in current tree
|
" search cscope db in current tree
|
||||||
if filereadable(findfile("cscope.out", ".;"))
|
if filereadable(findfile("cscope.out", ".;"))
|
||||||
let l:cscopedb = findfile("cscope.out", ".;")
|
let l:cscopedb = findfile("cscope.out", ".;")
|
||||||
exe "cs add " . l:cscopedb
|
exe "cs add " . l:cscopedb . " " . fnamemodify(l:cscopedb, ":p:h")
|
||||||
echomsg "found local cscopedb file: " . l:cscopedb
|
echomsg "found local cscopedb file: " . l:cscopedb
|
||||||
endif
|
endif
|
||||||
endfun
|
endfun
|
||||||
|
Loading…
Reference in New Issue
Block a user