comparison 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
comparison
equal deleted inserted replaced
13834:cdf8997299f7 13835:8e583c52eb44
467 buffer, or ":split" with a file that's already 467 buffer, or ":split" with a file that's already
468 open in a window, because it re-uses an 468 open in a window, because it re-uses an
469 existing buffer. But it does happen for a 469 existing buffer. But it does happen for a
470 ":split" with the name of the current buffer, 470 ":split" with the name of the current buffer,
471 since it reloads that buffer. 471 since it reloads that buffer.
472 Does not happen for a terminal window, because
473 it starts in Terminal-Job mode and Normal mode
474 commands won't work. Use |TerminalOpen| instead.
472 *BufWinLeave* 475 *BufWinLeave*
473 BufWinLeave Before a buffer is removed from a window. 476 BufWinLeave Before a buffer is removed from a window.
474 Not when it's still visible in another window. 477 Not when it's still visible in another window.
475 Also triggered when exiting. It's triggered 478 Also triggered when exiting. It's triggered
476 before BufUnload or BufHidden. 479 before BufUnload or BufHidden.