Mercurial > vim
diff runtime/doc/autocmd.txt @ 13835:8e583c52eb44 v8.0.1789
patch 8.0.1789: BufWinEnter does not work well for a terminal window
commit https://github.com/vim/vim/commit/606cb8b08ed510962fcdc8ef1abcc1fe35fbffef
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 3 20:40:20 2018 +0200
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 03 May 2018 20:45:04 +0200 |
parents | 28ac7914b2b6 |
children | e751b5c9dff3 |
line wrap: on
line diff
--- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -469,6 +469,9 @@ BufWinEnter After a buffer is displaye 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.