From e70ef80f7741905580d228927ca4f694e38777fe Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 27 Aug 2022 06:34:40 +0800 Subject: vim-patch:9.0.0278: the +wildignore feature is nearly always available Problem: The +wildignore feature is nearly always available. Solution: Graduate +wildignore for consistency. https://github.com/vim/vim/commit/074fbd413172edc6f4936296a28bf8fd5cdfa38b --- src/nvim/fileio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 0b66878103..39b4eb4376 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -337,7 +337,9 @@ int readfile(char *fname, char *sfname, linenr_T from, linenr_T lines_to_skip, 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; } } -- cgit