Use tex2unicode for bibtex completions (#203)

This commit is contained in:
Karl Yngve Lervåg 2015-07-16 23:07:09 +02:00
parent c31688ff83
commit 610492f9b5

View File

@ -291,7 +291,8 @@ function! s:bibtex_search(regexp) " {{{1
call vimtex#util#execute(exe)
" Parse temporary bbl file
let lines = split(substitute(join(readfile(tmp.bbl), "\n"),
let lines = map(readfile(tmp.bbl), 's:tex2unicode(v:val)')
let lines = split(substitute(join(lines, "\n"),
\ '\n\n\@!\(\s\=\)\s*\|{\|}', '\1', 'g'), "\n")
for line in filter(lines, 'v:val =~ a:regexp')