Fix formatting

This commit is contained in:
IdanArye 2018-09-25 02:08:25 +03:00
parent 2f88c8db15
commit 4fac68fb95

View File

@ -136,10 +136,13 @@ endfunction
" others.
function! vebugger#util#EnglishExecute(command) abort
let l:lang = matchstr(execute('language messages'), '"\zs.*\ze"')
if l:lang !~ 'en' | language messages en_US.utf8 | endif
if l:lang !~ 'en'
language messages en_US.utf8
endif
let l:result = execute(a:command)
if l:lang !~ 'en' | language messages l:lang | endif
if l:lang !~ 'en'
language messages l:lang
endif
return l:result
endfunction