From 4d522bdc6e65bd84e74487611cc24022469e6af3 Mon Sep 17 00:00:00 2001 From: kyouryuukunn Date: Sat, 8 Sep 2018 21:03:49 +0900 Subject: [PATCH] Fixed a problem about the vim translated to Japanese --- autoload/vebugger/util.vim | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/autoload/vebugger/util.vim b/autoload/vebugger/util.vim index 1c7f33e..82721ec 100644 --- a/autoload/vebugger/util.vim +++ b/autoload/vebugger/util.vim @@ -126,7 +126,14 @@ endfunction function! s:listSigns(filter) abort let l:result = [] - for l:line in split(execute('sign place '.a:filter), '\n') + if v:lang == 'ja' + let $LANG = 'en' + let l:lines = execute('sign place '.a:filter) + let $LANG = 'ja' + else + let l:lines = execute('sign place '.a:filter) + endif + for l:line in split(l:lines, '\n') let l:match = matchlist(l:line, '\C\v^\s+line\=(\d+)\s+id\=(\d+)\s+name\=(.+)$') if !empty(l:match) call add(l:result, {