0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.3761: focus change is not passed on to a terminal window

Problem:    Focus change is not passed on to a terminal window.
Solution:   If the current window is a terminal and focus events are enabled
            send a focus event escape sequence to the terminal.
This commit is contained in:
Bram Moolenaar
2021-12-08 22:13:38 +00:00
parent 48873aebc0
commit a48d4e44a2
7 changed files with 86 additions and 8 deletions

View File

@@ -1145,6 +1145,10 @@ ui_focus_change(
last_time = time(NULL);
}
#ifdef FEAT_TERMINAL
term_focus_change(in_focus);
#endif
/*
* Fire the focus gained/lost autocommand.
*/