summaryrefslogtreecommitdiffstats
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-03-19 16:49:16 +0100
committerBram Moolenaar <Bram@vim.org>2013-03-19 16:49:16 +0100
commit71afbfe6cd697de30a9e0d57e5a6434cf4bb0f13 (patch)
tree981f8a151ec2a29321c8ef579101f82403e6e38b /src/ex_getln.c
parentdb333a5b8d0c72b7342d6d65ad2895a19a1c29d2 (diff)
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/ex_getln.c')
-rw-r--r--src/ex_getln.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 57582e84df..d8a4a67f4d 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -3653,19 +3653,16 @@ ExpandOne(xp, str, orig, options, mode)
{
for (i = 0; i < xp->xp_numfiles; ++i)
{
-#ifdef CASE_INSENSITIVE_FILENAME
- if (xp->xp_context == EXPAND_DIRECTORIES
+ if (p_fic && (xp->xp_context == EXPAND_DIRECTORIES
|| xp->xp_context == EXPAND_FILES
|| xp->xp_context == EXPAND_SHELLCMD
- || xp->xp_context == EXPAND_BUFFERS)
+ || xp->xp_context == EXPAND_BUFFERS))
{
if (TOLOWER_LOC(xp->xp_files[i][len]) !=
TOLOWER_LOC(xp->xp_files[0][len]))
break;
}
- else
-#endif
- if (xp->xp_files[i][len] != xp->xp_files[0][len])
+ else if (xp->xp_files[i][len] != xp->xp_files[0][len])
break;
}
if (i < xp->xp_numfiles)