aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal/ex_terminal_spec.lua
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-07-08 18:42:52 +0200
committerGitHub <noreply@github.com>2019-07-08 18:42:52 +0200
commitc07f266c5bc4bf68be8741d90eb2b25901598bbc (patch)
tree0ef972b3274c4f20990467cf425a638805f43c8e /test/functional/terminal/ex_terminal_spec.lua
parent44e150bd460a52e31f9714644f7664d1bc61405b (diff)
downloadrneovim-c07f266c5bc4bf68be8741d90eb2b25901598bbc.tar.gz
rneovim-c07f266c5bc4bf68be8741d90eb2b25901598bbc.tar.bz2
rneovim-c07f266c5bc4bf68be8741d90eb2b25901598bbc.zip
tests: ex_terminal_spec: add test for previous leak (#10450)
Closes https://github.com/neovim/neovim/pull/4766.
Diffstat (limited to 'test/functional/terminal/ex_terminal_spec.lua')
-rw-r--r--test/functional/terminal/ex_terminal_spec.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/terminal/ex_terminal_spec.lua b/test/functional/terminal/ex_terminal_spec.lua
index 2c731066bd..591e6340cf 100644
--- a/test/functional/terminal/ex_terminal_spec.lua
+++ b/test/functional/terminal/ex_terminal_spec.lua
@@ -261,4 +261,14 @@ describe(':terminal (with fake shell)', function()
eq('scripts/shadacat.py', eval('bufname("%")'))
end)
+ it('with bufhidden=delete #3958', function()
+ command('set hidden')
+ eq(1, eval('&hidden'))
+ command('autocmd BufNew * setlocal bufhidden=delete')
+ for _ = 1, 5 do
+ source([[
+ execute 'edit '.reltimestr(reltime())
+ terminal]])
+ end
+ end)
end)