diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-27 06:34:40 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-08-27 07:03:06 +0800 |
commit | e70ef80f7741905580d228927ca4f694e38777fe (patch) | |
tree | 35bf1edcffa2dcaa6f80a0929d79e0b7abd9d5a2 /src | |
parent | d5e08837128530f05b2fc8900e826f767e4961ee (diff) | |
download | rneovim-e70ef80f7741905580d228927ca4f694e38777fe.tar.gz rneovim-e70ef80f7741905580d228927ca4f694e38777fe.tar.bz2 rneovim-e70ef80f7741905580d228927ca4f694e38777fe.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/fileio.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } } |