diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-19 10:48:07 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-19 10:48:07 +1200 |
commit | 91b08ae3e026e812e2be576b9cd61121ea813c16 (patch) | |
tree | a4d7cb551a99565eed7ccee977a4b9abf262463f /vim/plugin/wildignore.vim | |
parent | Merge branch 'hotfix/v1.34.3' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-91b08ae3e026e812e2be576b9cd61121ea813c16.tar.gz dotfiles-91b08ae3e026e812e2be576b9cd61121ea813c16.zip |
Merge branch 'release/v1.35.0'v1.35.0
* release/v1.35.0:
Bump VERSION
Add compatible/version guard to syntax after files
Remove line continuations from VimL indent after
Make /usr/include 'path' setting hinge on +unix
Set UTF-8 default 'encoding'
Interfere more specifically with 'path'
Add to 'backupskip' one element at a time
Amend a vimrc comment
Sort .gitignore
Anchor paths in .gitignore
Remove dist/vim-plugin.sh
Remove vim/dist from .gitignore
Use full command name in CentOS system Vim revert
Clarify perl.vim ftdetect comment a bit
Remove silent! prefix from Debian 'rtp' revert
Only add uppercase 'wildignore' if it matters
Remove double-trail-slash from 'backupdir'
Make 'backupskip' with Unix paths depend on +unix
Diffstat (limited to 'vim/plugin/wildignore.vim')
-rw-r--r-- | vim/plugin/wildignore.vim | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/vim/plugin/wildignore.vim b/vim/plugin/wildignore.vim index b87b62b1..b10eaa01 100644 --- a/vim/plugin/wildignore.vim +++ b/vim/plugin/wildignore.vim @@ -154,12 +154,15 @@ function! s:Wildignore() abort \,'*.swp' \ ] - " For any that had lowercase letters, add their uppercase analogues - for l:ignore in l:ignores - if l:ignore =~# '\l' - call add(l:ignores, toupper(l:ignore)) - endif - endfor + " If on a system where case matters for filenames, for any that had + " lowercase letters, add their uppercase analogues + if has('fname_case') + for l:ignore in l:ignores + if l:ignore =~# '\l' + call add(l:ignores, toupper(l:ignore)) + endif + endfor + endif " Return the completed setting return join(l:ignores, ',') |