diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-26 13:16:20 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-26 13:16:20 +0100 |
commit | a9b5b85068b2fcb1c01ea20524e227bcad579ceb (patch) | |
tree | 7083f70f769868e027784cd141106d85171f04af /src/fileio.c | |
parent | c312619f7c0cf590d96e0b2ed891d1f6c43d769b (diff) |
patch 9.0.0275: BufEnter not triggered when using ":edit" in "nofile" bufferv9.0.0275
Problem: BufEnter not triggered when using ":edit" in "nofile" buffer.
Solution: Let readfile() return NOTDONE. (closes #10986)
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index 1b30e0fed5..8437b2b447 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -312,7 +312,7 @@ readfile( curbuf->b_op_start = orig_start; if (flags & READ_NOFILE) - return FAIL; + return NOTDONE; // so that BufEnter can be triggered } if ((shortmess(SHM_OVER) || curbuf->b_help) && p_verbose == 0) |