Merge pull request #2331 from idbrii/fix-nul

Fix NUL file created when opening a .po file
This commit is contained in:
Christian Brabandt 2021-02-05 08:19:25 +01:00 committed by GitHub
commit 82000c7cfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -65,8 +65,9 @@ function! airline#extensions#po#stats()
return b:airline_po_stats
endif
" Write stdout to null because we only want to see warnings.
if g:airline#init#is_windows
let cmd = 'msgfmt --statistics -o NUL '
let cmd = 'msgfmt --statistics -o /NUL '
else
let cmd = 'msgfmt --statistics -o /dev/null -- '
endif