Mercurial > vim
diff src/testdir/test_terminal.vim @ 11957:bc0fee081e1e
patch 8.0.0858: can exit while a terminal is still running a job
commit https://github.com/vim/vim/commit/eb44a68b42eda207a5bc4def9ea8fc4d38acb650
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 3 22:44:55 2017 +0200
patch 8.0.0858: can exit while a terminal is still running a job
Problem: Can exit while a terminal is still running a job.
Solution: Consider a buffer with a running job like a changed file.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 03 Aug 2017 22:45:04 +0200 |
parents | baa2edd33f5d |
children | aec3df2af27c |
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -63,7 +63,8 @@ endfunc func Test_terminal_wipe_buffer() let buf = Run_shell_in_terminal() - exe buf . 'bwipe' + call assert_fails(buf . 'bwipe', 'E517') + exe buf . 'bwipe!' call WaitFor('job_status(g:job) == "dead"') call assert_equal('dead', job_status(g:job)) call assert_equal("", bufname(buf))