Make cite-completion accept dashes

This commit is contained in:
Albin Ahlbäck
2022-03-09 16:43:16 +01:00
committed by Gerd Wachsmuth
parent 0760891c71
commit dc44e6a8a2
+1 -1
View File
@@ -381,7 +381,7 @@ function! s:Tex_CompleteRefCiteCustom(type)
let bibkey = matchstr(getline('.'), '\\bibitem\s*\%(\[.\{-}\]\)\?\s*{\zs.\{-}\ze}')
if bibkey == ""
" Look for a '@article{bibkey,'
let bibkey = matchstr(getline('.'), '@\w*{\zs\w*\ze,')
let bibkey = matchstr(getline('.'), '@\w*{\zs.*\ze,')
endif
let completeword = bibkey