]> granicus.if.org Git - vim/commit
patch 9.0.0272: BufReadCmd not triggered when loading a "nofile" buffer v9.0.0272
authorBram Moolenaar <Bram@vim.org>
Fri, 26 Aug 2022 10:55:01 +0000 (11:55 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 26 Aug 2022 10:55:01 +0000 (11:55 +0100)
commitb1d2c8116cb5577961ea109651fb888b5e58265f
tree3cca94a88929fc31a58d1965da471e7b1e8050a2
parent9b7d2a959646560f5770329f4428c4739eed4656
patch 9.0.0272: BufReadCmd not triggered when loading a "nofile" buffer

Problem:    BufReadCmd not triggered when loading a "nofile" buffer. (Maxim
            Kim)
Solution:   Call readfile() but bail out before reading a file.
            (closes #10983)
src/buffer.c
src/fileio.c
src/testdir/test_autocmd.vim
src/version.c
src/vim.h