mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
fix: fix GZIP error
This commit is contained in:
parent
18d7ec36f3
commit
cf4af351a6
@ -72,7 +72,13 @@ describe('file reading, writing and bufnew and filter autocommands', function()
|
||||
prepare_gz_file('Xtestfile', text1)
|
||||
--execute('au FileChangedShell * echo "caught FileChangedShell"')
|
||||
feed_command('set bin')
|
||||
feed_command("au FileReadPost *.gz '[,']!gzip -d")
|
||||
if iswin() then
|
||||
feed_command('let $GZIP = ""')
|
||||
feed_command("au FileReadPost *.gz '[,']!gzip -d")
|
||||
else
|
||||
-- Note: GZIP= Does not work in Windows
|
||||
feed_command("au FileReadPost *.gz '[,']!GZIP= gzip -d")
|
||||
end
|
||||
-- Read and decompress the testfile.
|
||||
feed_command('$r Xtestfile.gz')
|
||||
expect('\n'..text1)
|
||||
|
Loading…
Reference in New Issue
Block a user