From 4da464f63c6c705c977b28121c5d6c026a1b0998 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Tue, 16 Apr 2013 11:14:51 +0200 Subject: [PATCH] [vim][autotags] add path to cscope whand adding new db --- .vim/plugin/autotags.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vim/plugin/autotags.vim b/.vim/plugin/autotags.vim index 3b3a579..04ebf40 100644 --- a/.vim/plugin/autotags.vim +++ b/.vim/plugin/autotags.vim @@ -250,7 +250,7 @@ fun! s:AutotagsSearchLoadTags() " search cscope db in current tree if filereadable(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 endif endfun