Skip to content

Commit

Permalink
Merge pull request #143 from sapek/bib
Browse files Browse the repository at this point in the history
Don't invoke bib.vim_completer if Python is missing
  • Loading branch information
fmoralesc committed Aug 13, 2015
2 parents 0663129 + a60f814 commit ead1f17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion autoload/pandoc/bibliographies.vim
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ function! pandoc#bibliographies#Init()
let s:python.cmd = "python3"
let s:python.eval = "py3eval"
endif
exe s:python.cmd . " import vim_pandoc.bib.vim_completer"
if has("python") || has("python3")
exe s:python.cmd . " import vim_pandoc.bib.vim_completer"
endif
endfunction

" Find_Bibliographies(): gives a list of bibliographies in g:pandoc#biblio#sources {{{1
Expand Down

0 comments on commit ead1f17

Please sign in to comment.