Merge pull request #2331 from idbrii/fix-nul
Fix NUL file created when opening a .po file
This commit is contained in:
commit
82000c7cfc
|
@ -65,8 +65,9 @@ function! airline#extensions#po#stats()
|
||||||
return b:airline_po_stats
|
return b:airline_po_stats
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Write stdout to null because we only want to see warnings.
|
||||||
if g:airline#init#is_windows
|
if g:airline#init#is_windows
|
||||||
let cmd = 'msgfmt --statistics -o NUL '
|
let cmd = 'msgfmt --statistics -o /NUL '
|
||||||
else
|
else
|
||||||
let cmd = 'msgfmt --statistics -o /dev/null -- '
|
let cmd = 'msgfmt --statistics -o /dev/null -- '
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue