From 074fbd413172edc6f4936296a28bf8fd5cdfa38b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 26 Aug 2022 16:41:14 +0100 Subject: patch 9.0.0278: the +wildignore feature is nearly always available Problem: The +wildignore feature is nearly always available. Solution: Graduate +wildignore for consistency. --- src/fileio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/fileio.c') 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 -- cgit v1.2.3