1
0
forked from aniani/vim

patch 8.1.2219: no autocommand for open window with terminal

Problem:    No autocommand for open window with terminal.
Solution:   Add TerminalWinOpen. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2019-10-26 16:21:40 +02:00
parent 453c19257f
commit 28ed4dfe1f
6 changed files with 33 additions and 1 deletions

View File

@@ -690,6 +690,8 @@ term_start(
}
apply_autocmds(EVENT_TERMINALOPEN, NULL, NULL, FALSE, newbuf);
if (!opt->jo_hidden && !(flags & TERM_START_SYSTEM))
apply_autocmds(EVENT_TERMINALWINOPEN, NULL, NULL, FALSE, newbuf);
return newbuf;
}