Mercurial > vim
comparison src/testdir/test_functions.vim @ 28291:1c97a31f8f22 v8.2.4671
patch 8.2.4671: 'wildignorecase' is sometimes not used for glob()
Commit: https://github.com/vim/vim/commit/a3157a476bfa8c3077d510cc8400093c0d115df5
Author: LemonBoy <thatlemon@gmail.com>
Date: Sun Apr 3 11:58:31 2022 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 03 Apr 2022 13:00:03 +0200 |
parents | 4c60e656e054 |
children | 0390c4848b27 |
comparison
equal
deleted
inserted
replaced
28290:f5ea61be543b | 28291:1c97a31f8f22 |
---|---|
2819 call writefile([], 'XGLOB2') | 2819 call writefile([], 'XGLOB2') |
2820 set wildignorecase | 2820 set wildignorecase |
2821 " Sort output of glob() otherwise we end up with different | 2821 " Sort output of glob() otherwise we end up with different |
2822 " ordering depending on whether file system is case-sensitive. | 2822 " ordering depending on whether file system is case-sensitive. |
2823 call assert_equal(['XGLOB2', 'Xglob1'], sort(glob('Xglob[12]', 0, 1))) | 2823 call assert_equal(['XGLOB2', 'Xglob1'], sort(glob('Xglob[12]', 0, 1))) |
2824 " wildignorecase shall be applied even when the pattern contains no wildcards. | |
2825 call assert_equal('XGLOB2', glob('xglob2')) | |
2824 set wildignorecase& | 2826 set wildignorecase& |
2825 | 2827 |
2826 call delete('Xglob1') | 2828 call delete('Xglob1') |
2827 call delete('XGLOB2') | 2829 call delete('XGLOB2') |
2828 | 2830 |