diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-10-15 16:52:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-15 16:52:25 +0800 |
commit | 9d05b28f75ccf8691fb33291ac60b0092eb70f37 (patch) | |
tree | 91e4b7bbf302a699629d59652e73a365ccafe3a1 /test/functional/autocmd/termxx_spec.lua | |
parent | e26b48bde6e116eb288893454d2876cdad2db1f9 (diff) | |
parent | a9452cf3d5e2904ff355daf660e8e56bcb2433eb (diff) | |
download | rneovim-9d05b28f75ccf8691fb33291ac60b0092eb70f37.tar.gz rneovim-9d05b28f75ccf8691fb33291ac60b0092eb70f37.tar.bz2 rneovim-9d05b28f75ccf8691fb33291ac60b0092eb70f37.zip |
Merge pull request #20662 from zeertzjq/vim-9.0.0614
vim-patch:8.1.0342,9.0.{0614,0616}: SpellFileMissing autocmd may delete buffer
Diffstat (limited to 'test/functional/autocmd/termxx_spec.lua')
-rw-r--r-- | test/functional/autocmd/termxx_spec.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/autocmd/termxx_spec.lua b/test/functional/autocmd/termxx_spec.lua index 859c2ebf44..a38f9cb0ac 100644 --- a/test/functional/autocmd/termxx_spec.lua +++ b/test/functional/autocmd/termxx_spec.lua @@ -5,6 +5,7 @@ local clear, command, nvim, testprg = helpers.clear, helpers.command, helpers.nvim, helpers.testprg local eval, eq, neq, retry = helpers.eval, helpers.eq, helpers.neq, helpers.retry +local matches = helpers.matches local ok = helpers.ok local feed = helpers.feed local pcall_err = helpers.pcall_err @@ -22,7 +23,8 @@ describe('autocmd TermClose', function() local function test_termclose_delete_own_buf() command('autocmd TermClose * bdelete!') command('terminal') - eq('Vim(bdelete):E937: Attempt to delete a buffer that is in use', pcall_err(command, 'bdelete!')) + matches('^Vim%(bdelete%):E937: Attempt to delete a buffer that is in use: term://', + pcall_err(command, 'bdelete!')) assert_alive() end |