1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2018-05-03 20:40:20 +02:00
parent dddab90d22
commit 606cb8b08e
4 changed files with 8 additions and 9 deletions

View File

@@ -32,7 +32,7 @@ func Run_shell_in_terminal(options)
endfunc
func Test_terminal_basic()
au BufWinEnter * if &buftype == 'terminal' | let b:done = 'yes' | endif
au TerminalOpen * let b:done = 'yes'
let buf = Run_shell_in_terminal({})
if has("unix")
@@ -61,7 +61,7 @@ func Test_terminal_basic()
close
call assert_equal("", bufname(buf))
au! BufWinEnter
au! TerminalOpen
unlet g:job
endfunc