mirror of
https://github.com/vim-latex/vim-latex.git
synced 2026-05-26 11:24:23 +02:00
Make cite-completion accept dashes
This commit is contained in:
committed by
Gerd Wachsmuth
parent
0760891c71
commit
dc44e6a8a2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user