forked from aniani/vim
patch 8.2.4671: 'wildignorecase' is sometimes not used for glob()
Problem: 'wildignorecase' is sometimes not used for glob().
Solution: Also use 'wildignorecase' when there are no wildcards.
(closes #10066, closes #8350)
This commit is contained in:
@@ -2821,6 +2821,8 @@ func Test_glob()
|
||||
" Sort output of glob() otherwise we end up with different
|
||||
" ordering depending on whether file system is case-sensitive.
|
||||
call assert_equal(['XGLOB2', 'Xglob1'], sort(glob('Xglob[12]', 0, 1)))
|
||||
" wildignorecase shall be applied even when the pattern contains no wildcards.
|
||||
call assert_equal('XGLOB2', glob('xglob2'))
|
||||
set wildignorecase&
|
||||
|
||||
call delete('Xglob1')
|
||||
|
||||
Reference in New Issue
Block a user