comparison src/testdir/test_terminal.vim @ 14449:5faab0545f3c v8.1.0238

patch 8.1.0238: 'buftype' is cleared when using ":term ++hidden cat" commit https://github.com/vim/vim/commit/7da1fb5532890d9c15cdb5b9bec158f9f9c105a7 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 4 16:54:11 2018 +0200 patch 8.1.0238: 'buftype' is cleared when using ":term ++hidden cat" Problem: 'buftype' is cleared when using ":term ++hidden cat". (Marcin Szamotulski) Solution: Set the "options initialized" flag earlier. (closes #3278)
author Christian Brabandt <cb@256bit.org>
date Sat, 04 Aug 2018 17:00:05 +0200
parents 83b870d9ac4b
children ecf6c05d8ac3
comparison
equal deleted inserted replaced
14448:fe6e859a75ad 14449:5faab0545f3c
1603 call assert_equal(exitval, v:shell_error) 1603 call assert_equal(exitval, v:shell_error)
1604 1604
1605 set guioptions& 1605 set guioptions&
1606 call delete(filename) 1606 call delete(filename)
1607 endfunc 1607 endfunc
1608
1609 func Test_terminal_hidden()
1610 if !has('unix')
1611 return
1612 endif
1613 term ++hidden cat
1614 let bnr = bufnr('$')
1615 call assert_equal('terminal', getbufvar(bnr, '&buftype'))
1616 exe 'sbuf ' . bnr
1617 call assert_equal('terminal', &buftype)
1618 call term_sendkeys(bnr, "asdf\<CR>")
1619 call WaitForAssert({-> assert_match('asdf', term_getline(bnr, 2))})
1620 call term_sendkeys(bnr, "\<C-D>")
1621 call WaitForAssert({-> assert_equal('finished', term_getstatus(bnr))})
1622 bwipe!
1623 endfunc