Merge pull request #563 from Lasall/vala-modules-copy

Work with copy of g:syntastic_vala_modules list.
This commit is contained in:
Martin Grenfell 2013-03-18 02:45:37 -07:00
commit 291c3fa00b

View File

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