Mercurial > vim
comparison src/terminal.c @ 18450:507348b211b4 v8.1.2219
patch 8.1.2219: no autocommand for open window with terminal
Commit: https://github.com/vim/vim/commit/28ed4dfe1f80905fb399c2cde31ace5ee14d8c67
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 26 16:21:40 2019 +0200
patch 8.1.2219: no autocommand for open window with terminal
Problem: No autocommand for open window with terminal.
Solution: Add TerminalWinOpen. (Christian Brabandt)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 26 Oct 2019 16:30:03 +0200 |
parents | 3a3efaaa05c5 |
children | 3cd689e9eb7f |
comparison
equal
deleted
inserted
replaced
18449:2d1716e5ba53 | 18450:507348b211b4 |
---|---|
688 term_close_buffer(curbuf, old_curbuf); | 688 term_close_buffer(curbuf, old_curbuf); |
689 return NULL; | 689 return NULL; |
690 } | 690 } |
691 | 691 |
692 apply_autocmds(EVENT_TERMINALOPEN, NULL, NULL, FALSE, newbuf); | 692 apply_autocmds(EVENT_TERMINALOPEN, NULL, NULL, FALSE, newbuf); |
693 if (!opt->jo_hidden && !(flags & TERM_START_SYSTEM)) | |
694 apply_autocmds(EVENT_TERMINALWINOPEN, NULL, NULL, FALSE, newbuf); | |
693 return newbuf; | 695 return newbuf; |
694 } | 696 } |
695 | 697 |
696 /* | 698 /* |
697 * ":terminal": open a terminal window and execute a job in it. | 699 * ":terminal": open a terminal window and execute a job in it. |