mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
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)
This commit is contained in:
@@ -1006,6 +1006,7 @@ extern int (*dyn_libintl_wputenv)(const wchar_t *envstring);
|
||||
#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
|
||||
|
Reference in New Issue
Block a user