Mercurial > vim-gutentags
comparison autoload/gutentags/cscope.vim @ 195:fd863d1bcfb9
Suppress warning from cscope add
author | Chayoung You <yousbe@gmail.com> |
---|---|
date | Wed, 19 Jul 2017 14:23:20 +0900 |
parents | 4689b770e4fa |
children | cac059bce038 |
comparison
equal
deleted
inserted
replaced
194:4689b770e4fa | 195:fd863d1bcfb9 |
---|---|
32 let b:gutentags_files['cscope'] = l:dbfile_path | 32 let b:gutentags_files['cscope'] = l:dbfile_path |
33 | 33 |
34 if g:gutentags_auto_add_cscope && filereadable(l:dbfile_path) | 34 if g:gutentags_auto_add_cscope && filereadable(l:dbfile_path) |
35 if index(s:added_dbs, l:dbfile_path) < 0 | 35 if index(s:added_dbs, l:dbfile_path) < 0 |
36 call add(s:added_dbs, l:dbfile_path) | 36 call add(s:added_dbs, l:dbfile_path) |
37 execute 'cs add ' . fnameescape(l:dbfile_path) | 37 silent! execute 'cs add ' . fnameescape(l:dbfile_path) |
38 endif | 38 endif |
39 endif | 39 endif |
40 endfunction | 40 endfunction |
41 | 41 |
42 function! gutentags#cscope#command_terminated(job_id, data, event) abort | 42 function! gutentags#cscope#command_terminated(job_id, data, event) abort |
43 if a:data == 0 | 43 if a:data == 0 |
44 if index(s:added_dbs, self.db_file) < 0 | 44 if index(s:added_dbs, self.db_file) < 0 |
45 call add(s:added_dbs, self.db_file) | 45 call add(s:added_dbs, self.db_file) |
46 execute 'cs add ' . fnameescape(s:db_file) | 46 silent! execute 'cs add ' . fnameescape(s:db_file) |
47 else | 47 else |
48 execute 'cs reset' | 48 execute 'cs reset' |
49 endif | 49 endif |
50 endif | 50 endif |
51 endfunction | 51 endfunction |