aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fileio.h
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-26 19:04:20 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-08-27 06:12:52 +0800
commit900a151bf541c7fa77a56b4881c4836a1cabcde6 (patch)
tree32973768295e652ac35bdc946a7f76d5cefcc0d0 /src/nvim/fileio.h
parentb0e052a8b30ce84221c3f992e111713451633b36 (diff)
downloadrneovim-900a151bf541c7fa77a56b4881c4836a1cabcde6.tar.gz
rneovim-900a151bf541c7fa77a56b4881c4836a1cabcde6.tar.bz2
rneovim-900a151bf541c7fa77a56b4881c4836a1cabcde6.zip
vim-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 vim/vim#10983) https://github.com/vim/vim/commit/b1d2c8116cb5577961ea109651fb888b5e58265f
Diffstat (limited to 'src/nvim/fileio.h')
-rw-r--r--src/nvim/fileio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/fileio.h b/src/nvim/fileio.h
index 650977deac..ae3c51f1bc 100644
--- a/src/nvim/fileio.h
+++ b/src/nvim/fileio.h
@@ -15,6 +15,7 @@
#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
#define READ_STRING(x, y) (char_u *)read_string((x), (size_t)(y))