use get(v:, 'lang', '') instead of v:lang

closes #1735
This commit is contained in:
Christian Brabandt 2018-06-04 21:45:46 +02:00
parent 981b83003f
commit 044a90ed55
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -57,9 +57,9 @@ function! s:wordcount()
endfunction endfunction
function! s:get_decimal_group() function! s:get_decimal_group()
if match(v:lang, '\v\cC|en') > -1 if match(get(v:, 'lang', ''), '\v\cC|en') > -1
return ',' return ','
elseif match(v:lang, '\v\cde|dk|fr|pt') > -1 elseif match(get(v:, 'lang', ''), '\v\cde|dk|fr|pt') > -1
return '.' return '.'
endif endif
return '' return ''