aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/funcs.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-05 08:27:40 +0800
committerGitHub <noreply@github.com>2022-08-05 08:27:40 +0800
commit37ab823e6e2c18892271f2f0a3a4f2f3e8e853f4 (patch)
tree1e26aaa2cf72b86cd354da2f52d4eace20dd8a66 /src/nvim/eval/funcs.c
parentc1e1d16fcac0daa8b5796a3a5d11271fbb89ccbb (diff)
parent3aef2b8bdf0d451651efc452ca2a44ed2824f0ec (diff)
downloadrneovim-37ab823e6e2c18892271f2f0a3a4f2f3e8e853f4.tar.gz
rneovim-37ab823e6e2c18892271f2f0a3a4f2f3e8e853f4.tar.bz2
rneovim-37ab823e6e2c18892271f2f0a3a4f2f3e8e853f4.zip
Merge pull request #19642 from zeertzjq/vim-8.2.0413
vim-patch:8.2.{0413,0478},9.0.0009: menu patches
Diffstat (limited to 'src/nvim/eval/funcs.c')
-rw-r--r--src/nvim/eval/funcs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c
index b3cfec8709..d121c106d0 100644
--- a/src/nvim/eval/funcs.c
+++ b/src/nvim/eval/funcs.c
@@ -9914,7 +9914,11 @@ static void f_termopen(typval_T *argvars, typval_T *rettv, FunPtr fptr)
// at this point the buffer has no terminal instance associated yet, so unset
// the 'swapfile' option to ensure no swap file will be created
curbuf->b_p_swf = false;
+
+ apply_autocmds(EVENT_BUFFILEPRE, NULL, NULL, false, curbuf);
(void)setfname(curbuf, (char *)NameBuff, NULL, true);
+ apply_autocmds(EVENT_BUFFILEPOST, NULL, NULL, false, curbuf);
+
// Save the job id and pid in b:terminal_job_{id,pid}
Error err = ERROR_INIT;
// deprecated: use 'channel' buffer option