From 4be0e92db01a502863ac4bb26dd0fee16d833145 Mon Sep 17 00:00:00 2001 From: Shougo Date: Fri, 7 May 2021 21:07:13 +0900 Subject: 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 --- src/nvim/testdir/test_quickfix.vim | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/nvim/testdir/test_quickfix.vim') diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim index da949f5940..16b6a5f464 100644 --- a/src/nvim/testdir/test_quickfix.vim +++ b/src/nvim/testdir/test_quickfix.vim @@ -1011,10 +1011,9 @@ endfunc " Tests for %D and %X errorformat options func Test_efm_dirstack() " Create the directory stack and files - call mkdir('dir1') - call mkdir('dir1/a') - call mkdir('dir1/a/b') - call mkdir('dir1/c') + call mkdir('dir1/a', 'p') + call mkdir('dir1/a/b', 'p') + call mkdir('dir1/c', 'p') call mkdir('dir2') let lines =<< trim [DATA] @@ -3485,6 +3484,9 @@ func Xqftick_tests(cchar) \ {'filename' : 'F7', 'lnum' : 11, 'text' : 'L11'}], 'r') call assert_equal(2, g:Xgetlist({'changedtick' : 0}).changedtick) + if isdirectory("Xone") + call delete("Xone", 'rf') + endif call writefile(["F8:80:L80", "F8:81:L81"], "Xone") Xfile Xone call assert_equal(1, g:Xgetlist({'changedtick' : 0}).changedtick) -- cgit