diff options
author | Shougo <Shougo.Matsu@gmail.com> | 2021-05-07 21:07:13 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 08:07:13 -0400 |
commit | 4be0e92db01a502863ac4bb26dd0fee16d833145 (patch) | |
tree | e6e578f6d598769c2a465974c07c29eca1aadddf /test/functional/legacy/011_autocommands_spec.lua | |
parent | 17434b88b4892218386b49b400e7eb6d265000ff (diff) | |
download | rneovim-4be0e92db01a502863ac4bb26dd0fee16d833145.tar.gz rneovim-4be0e92db01a502863ac4bb26dd0fee16d833145.tar.bz2 rneovim-4be0e92db01a502863ac4bb26dd0fee16d833145.zip |
vim-patch:8.1.1378: delete() can not handle a file name that looks like a pattern (#12784)
Problem: Delete() can not handle a file name that looks like a pattern.
Solution: Use readdir() instead of appending "/*" and expanding wildcards.
(Ken Takata, closes vim/vim#4424, closes vim/vim#696)
https://github.com/vim/vim/commit/701ff0a3e53d253d7300c385e582659bbff7860d
Diffstat (limited to 'test/functional/legacy/011_autocommands_spec.lua')
-rw-r--r-- | test/functional/legacy/011_autocommands_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/legacy/011_autocommands_spec.lua b/test/functional/legacy/011_autocommands_spec.lua index 7cc31dc787..c9c004eec1 100644 --- a/test/functional/legacy/011_autocommands_spec.lua +++ b/test/functional/legacy/011_autocommands_spec.lua @@ -70,7 +70,7 @@ describe('file reading, writing and bufnew and filter autocommands', function() feed_command('let $GZIP = ""') --execute('au FileChangedShell * echo "caught FileChangedShell"') feed_command('set bin') - feed_command("au FileReadPost *.gz '[,']!gzip -d") + feed_command("au FileReadPost *.gz '[,']!GZIP= gzip -d") -- Read and decompress the testfile. feed_command('$r Xtestfile.gz') expect('\n'..text1) |