diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-03-19 16:49:16 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-03-19 16:49:16 +0100 |
commit | 71afbfe6cd697de30a9e0d57e5a6434cf4bb0f13 (patch) | |
tree | 981f8a151ec2a29321c8ef579101f82403e6e38b /src/buffer.c | |
parent | db333a5b8d0c72b7342d6d65ad2895a19a1c29d2 (diff) | |
download | vim-git-71afbfe6cd697de30a9e0d57e5a6434cf4bb0f13.tar.gz |
updated for version 7.3.872v7.3.872
Problem: On some systems case of file names is always ignored, on others
never.
Solution: Add the 'fileignorecase' option to control this at runtime.
Implies 'wildignorecase'.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/buffer.c b/src/buffer.c index 5c63899c8..2a9fe4d12 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -2401,12 +2401,7 @@ fname_match(prog, name) if (name != NULL) { regmatch.regprog = prog; -#ifdef CASE_INSENSITIVE_FILENAME - regmatch.rm_ic = TRUE; /* Always ignore case */ -#else - regmatch.rm_ic = FALSE; /* Never ignore case */ -#endif - + regmatch.rm_ic = p_fic; /* ignore case when 'fileignorecase' is set */ if (vim_regexec(®match, name, (colnr_T)0)) match = name; else |