Skip to content

Commit

Permalink
House keeping. The biggest thing is using this plugin's path to calcu…
Browse files Browse the repository at this point in the history
…late the location of the protodef.pl file. Works better with plugin managers.
  • Loading branch information
Derek Wyatt committed Dec 20, 2011
1 parent d1de4d2 commit 9b9914d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugin/protodef.vim
Expand Up @@ -41,7 +41,7 @@ let g:protodef_ctags_flags = '--language-force=c++ --c++-kinds=+p-cdefglmnstuvx

" The path to the pullproto.pl script that's included as part of protodef
if !exists('g:protodefprotogetter')
let g:protodefprotogetter = substitute($VIM, '\\', '/', 'g') . '/pullproto.pl'
let g:protodefprotogetter = expand("<sfile>:p:h:h") . '/pullproto.pl'
endif

" This is a simple dictionary of default values that are set up for various data
Expand Down Expand Up @@ -128,7 +128,8 @@ function! s:GetFunctionPrototypesForCurrentBuffer(opts)
endif
if companion != ''
" Get the data from ctags
let ctagsoutput = system(g:protodefctagsexe . ' ' . g:protodef_ctags_flags . ' ' . companion)
let ctagscmd = g:protodefctagsexe . ' ' . g:protodef_ctags_flags . ' ' . companion
let ctagsoutput = system(ctagscmd)
if ctagsoutput == ''
return []
endif
Expand Down

0 comments on commit 9b9914d

Please sign in to comment.