Fixed a problem about the vim translated to Japanese

This commit is contained in:
kyouryuukunn 2018-09-08 21:03:49 +09:00
parent db4e2d5cf3
commit 4d522bdc6e

View File

@ -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, {