patch 9.0.0278: the +wildignore feature is nearly always available
Problem: The +wildignore feature is nearly always available.
Solution: Graduate +wildignore for consistency.
diff --git a/src/fileio.c b/src/fileio.c
index 8437b2b..701521a 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -312,7 +312,9 @@
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 @@
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 @@
}
return FALSE;
}
-#endif
/*
* Convert the given pattern "pat" which has shell style wildcards in it, into