aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/terminal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/terminal.c')
-rw-r--r--src/nvim/terminal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c
index b1ce0e6592..8fcc8bf0a5 100644
--- a/src/nvim/terminal.c
+++ b/src/nvim/terminal.c
@@ -355,6 +355,7 @@ void terminal_enter(void)
showmode();
curwin->w_redr_status = true; // For mode() in statusline. #8323
ui_busy_start();
+ apply_autocmds(EVENT_TERMENTER, NULL, NULL, false, curbuf);
s->state.execute = terminal_execute;
s->state.check = terminal_check;
@@ -363,6 +364,8 @@ void terminal_enter(void)
restart_edit = 0;
State = save_state;
RedrawingDisabled = s->save_rd;
+ apply_autocmds(EVENT_TERMLEAVE, NULL, NULL, false, curbuf);
+
if (save_curwin == curwin) { // save_curwin may be invalid (window closed)!
curwin->w_p_cul = save_w_p_cul;
curwin->w_p_cuc = save_w_p_cuc;