Work with copy of g:syntastic_vala_modules list.

This commit is contained in:
Dominique Lasserre 2013-03-16 00:47:16 +01:00
parent 75a234231b
commit 0511f0a216

View File

@ -36,7 +36,7 @@ function! s:GetValaModules()
if type(g:syntastic_vala_modules) == type('') if type(g:syntastic_vala_modules) == type('')
return split(g:syntastic_vala_modules, '\s\+') return split(g:syntastic_vala_modules, '\s\+')
elseif type(g:syntastic_vala_modules) == type([]) elseif type(g:syntastic_vala_modules) == type([])
return g:syntastic_vala_modules return copy(g:syntastic_vala_modules)
else else
echoerr 'g:syntastic_vala_modules must be either list or string: fallback to in file modules string' echoerr 'g:syntastic_vala_modules must be either list or string: fallback to in file modules string'
endif endif