summaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-08-26 16:41:14 +0100
committerBram Moolenaar <Bram@vim.org>2022-08-26 16:41:14 +0100
commit074fbd413172edc6f4936296a28bf8fd5cdfa38b (patch)
tree1c1f0e8682516840548e2b317e4a929c53ff9250 /src/fileio.c
parentc361842f1479a7f7f3e65bfb0e188f2e5d38336e (diff)
patch 9.0.0278: the +wildignore feature is nearly always availablev9.0.0278
Problem: The +wildignore feature is nearly always available. Solution: Graduate +wildignore for consistency.
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 8437b2b447..701521a419 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -312,7 +312,9 @@ readfile(
curbuf->b_op_start = orig_start;
if (flags & READ_NOFILE)
- return NOTDONE; // so that BufEnter can be triggered
+ // Return NOTDONE instead of FAIL so that BufEnter can be triggered
+ // and other operations don't fail.
+ return NOTDONE;
}
if ((shortmess(SHM_OVER) || curbuf->b_help) && p_verbose == 0)
@@ -5402,7 +5404,6 @@ match_file_pat(
return result;
}
-#if defined(FEAT_WILDIGN) || defined(PROTO)
/*
* Return TRUE if a file matches with a pattern in "list".
* "list" is a comma-separated list of patterns, like 'wildignore'.
@@ -5436,7 +5437,6 @@ match_file_list(char_u *list, char_u *sfname, char_u *ffname)
}
return FALSE;
}
-#endif
/*
* Convert the given pattern "pat" which has shell style wildcards in it, into