Use "old version" of globpath (fixes #328)

This commit is contained in:
Karl Yngve Lervåg 2016-01-15 23:45:25 +01:00
parent 61c7aca7bc
commit 1aedd5a746

View File

@ -328,7 +328,7 @@ let s:img = {
function! s:img.complete(regex) dict " {{{2 function! s:img.complete(regex) dict " {{{2
let self.candidates = [] let self.candidates = []
for l:ext in ['png', 'eps', 'pdf', 'jpg'] for l:ext in ['png', 'eps', 'pdf', 'jpg']
let self.candidates += globpath(b:vimtex.root, '**/*.' . l:ext, 1, 1) let self.candidates += split(globpath(b:vimtex.root, '**/*.' . l:ext), '\n')
endfor endfor
let l:output = b:vimtex.out() let l:output = b:vimtex.out()
@ -359,8 +359,9 @@ let s:inc = {
\} \}
function! s:inc.complete(regex) dict " {{{2 function! s:inc.complete(regex) dict " {{{2
let self.candidates = globpath(b:vimtex.root, '**/*.tex', 1, 1) let self.candidates = split(globpath(b:vimtex.root, '**/*.tex'), '\n')
let self.candidates = map(self.candidates, 'strpart(v:val, len(b:vimtex.root)+1)') let self.candidates = map(self.candidates,
\ 'strpart(v:val, len(b:vimtex.root)+1)')
let self.candidates = map(self.candidates, '{ let self.candidates = map(self.candidates, '{
\ ''word'' : v:val, \ ''word'' : v:val,
\ ''abbr'' : v:val, \ ''abbr'' : v:val,