From 606cb8b08ed510962fcdc8ef1abcc1fe35fbffef Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 3 May 2018 20:40:20 +0200 Subject: patch 8.0.1789: BufWinEnter does not work well for a terminal window Problem: BufWinEnter does not work well for a terminal window. Solution: Do not trigger BufWinEnter when opening a terminal window. --- runtime/doc/autocmd.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime/doc/autocmd.txt') diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index c3f04cc7a..14cf6c42a 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -469,6 +469,9 @@ BufWinEnter After a buffer is displayed in a window. This existing buffer. But it does happen for a ":split" with the name of the current buffer, since it reloads that buffer. + Does not happen for a terminal window, because + it starts in Terminal-Job mode and Normal mode + commands won't work. Use |TerminalOpen| instead. *BufWinLeave* BufWinLeave Before a buffer is removed from a window. Not when it's still visible in another window. -- cgit v1.2.1