Mercurial > vim
diff src/vim.h @ 29867:6eaef7375f17 v9.0.0272
patch 9.0.0272: BufReadCmd not triggered when loading a "nofile" buffer
Commit: https://github.com/vim/vim/commit/b1d2c8116cb5577961ea109651fb888b5e58265f
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Aug 26 11:55:01 2022 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 26 Aug 2022 13:00:04 +0200 |
parents | 7e2321707fea |
children | b97a870a7c63 |
line wrap: on
line diff
--- a/src/vim.h +++ b/src/vim.h @@ -1006,6 +1006,7 @@ extern int (*dyn_libintl_wputenv)(const #define READ_KEEP_UNDO 0x20 // keep undo info #define READ_FIFO 0x40 // read from fifo or socket #define READ_NOWINENTER 0x80 // do not trigger BufWinEnter +#define READ_NOFILE 0x100 // do not read a file, do trigger BufReadCmd // Values for change_indent() #define INDENT_SET 1 // set indent