From 610492f9b5580007a1e59f887280ae615b51c773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Thu, 16 Jul 2015 23:07:09 +0200 Subject: [PATCH] Use tex2unicode for bibtex completions (#203) --- autoload/vimtex/complete.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/vimtex/complete.vim b/autoload/vimtex/complete.vim index 381e75b..d1a6719 100644 --- a/autoload/vimtex/complete.vim +++ b/autoload/vimtex/complete.vim @@ -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')