mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
vim-patch:9.0.0275: BufEnter not triggered when using ":edit" in "nofile" buffer
Problem: BufEnter not triggered when using ":edit" in "nofile" buffer.
Solution: Let readfile() return NOTDONE. (closes vim/vim#10986)
a9b5b85068
This commit is contained in:
@@ -337,7 +337,7 @@ 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 FAIL;
|
||||
return NOTDONE; // so that BufEnter can be triggered
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user