diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2021-09-16 12:00:13 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-16 12:00:13 -0700 |
| commit | 7d67bd58655052103f3891122f0e6fe30ae1f829 (patch) | |
| tree | 778b8b9ebdf8cec2d90c77eece08abdad94329c8 /test/functional/api | |
| parent | 942b16adf7312c243fb27e579fa5da794fa0f502 (diff) | |
| parent | 2132c063af3adf1d612359e0ed42c7cbd8b4290c (diff) | |
| download | rneovim-7d67bd58655052103f3891122f0e6fe30ae1f829.tar.gz rneovim-7d67bd58655052103f3891122f0e6fe30ae1f829.tar.bz2 rneovim-7d67bd58655052103f3891122f0e6fe30ae1f829.zip | |
Merge #15677 release-0.5: backports
Diffstat (limited to 'test/functional/api')
| -rw-r--r-- | test/functional/api/window_spec.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/functional/api/window_spec.lua b/test/functional/api/window_spec.lua index bb72b63b6c..8c79e6a016 100644 --- a/test/functional/api/window_spec.lua +++ b/test/functional/api/window_spec.lua @@ -346,6 +346,21 @@ describe('API/win', function() eq(2, #meths.list_wins()) eq('', funcs.getcmdwintype()) end) + + it('closing current (float) window of another tabpage #15313', function() + command('tabedit') + eq(2, eval('tabpagenr()')) + local win = meths.open_win(0, true, { + relative='editor', row=10, col=10, width=50, height=10 + }) + local tabpage = eval('tabpagenr()') + command('tabprevious') + eq(1, eval('tabpagenr()')) + meths.win_close(win, false) + + eq(1001, meths.tabpage_get_win(tabpage).id) + helpers.assert_alive() + end) end) describe('hide', function() |