Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion plugin/quickr-cscope.vim
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ function! s:autoload_db()
call s:debug_echo('Database file found at: ' . db)
let &csprg=g:quickr_cscope_program
call s:debug_echo('Trying to add the database file for program: ' . g:quickr_cscope_program)
silent! execute "cs add " . db
let root_path = trim(system("git rev-parse --show-toplevel"))
execute "cs add " . db . " " . root_path
Comment on lines +61 to +62
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not want to do this as not all projects use git. cs add already adds the directory of the database file as the relative path.

If you really need this, this needs to be exposed as an option that's turned off by default.

return 1
else
call s:debug_echo('Database file not found.')
Expand Down