diff src/fileio.c @ 29879:77141226eb2e v9.0.0278

patch 9.0.0278: the +wildignore feature is nearly always available Commit: https://github.com/vim/vim/commit/074fbd413172edc6f4936296a28bf8fd5cdfa38b Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 26 16:41:14 2022 +0100 patch 9.0.0278: the +wildignore feature is nearly always available Problem: The +wildignore feature is nearly always available. Solution: Graduate +wildignore for consistency.
author Bram Moolenaar <Bram@vim.org>
date Fri, 26 Aug 2022 17:45:03 +0200
parents adc2dec6d27d
children 3a01529f17f5
line wrap: on
line diff
--- 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 *sf
     }
     return FALSE;
 }
-#endif
 
 /*
  * Convert the given pattern "pat" which has shell style wildcards in it, into