vim-patch:01164a6546b4 (#16335)

missing changes to src/nvim/po/check.vim from 01164a6546 (diff-ed3e88d59856bb5b62b2a394fb8c7293cd5794531e0718c0aa2d3d768d7973d1)
This commit is contained in:
zeertzjq 2021-11-18 10:28:20 +08:00 committed by GitHub
parent 1f68a21d66
commit 36538417f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,7 +162,10 @@ endwhile
" Check that the file is well formed according to msgfmts understanding
if executable("msgfmt")
let filename = expand("%")
let a = system("msgfmt --statistics OLD_PO_FILE_INPUT=yes " . filename)
" Newer msgfmt does not take OLD_PO_FILE_INPUT argument, must be in
" environment.
let $OLD_PO_FILE_INPUT = 'yes'
let a = system("msgfmt --statistics " . filename)
if v:shell_error != 0
let error = matchstr(a, filename.':\zs\d\+\ze:')+0
for line in split(a, '\n') | echomsg line | endfor