From eabb913ef98874e5517147cf779718a1fc82a1ea Mon Sep 17 00:00:00 2001 From: Yuriy Zhyromskiy Date: Fri, 12 Apr 2019 15:17:35 +0300 Subject: [PATCH] Fixed messages for non-english LANG env variables --- autoload/vebugger/util.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/vebugger/util.vim b/autoload/vebugger/util.vim index 61bfca6..44a400a 100644 --- a/autoload/vebugger/util.vim +++ b/autoload/vebugger/util.vim @@ -132,7 +132,7 @@ function! vebugger#util#listify(stringOrList) endif endfunction -" Return the resul of a:command in English, even if language messages set +" Return the result of a:command in English, even if language messages set " others. function! vebugger#util#EnglishExecute(command) abort let l:lang = matchstr(execute('language messages'), '"\zs.*\ze"') @@ -141,7 +141,7 @@ function! vebugger#util#EnglishExecute(command) abort endif let l:result = execute(a:command) if l:lang !~ 'en' - language messages l:lang + execute("language messages ". l:lang) endif return l:result endfunction