aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/window_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-12-02 11:15:47 +0800
committerGitHub <noreply@github.com>2022-12-02 11:15:47 +0800
commitfacfc88b4ca004cf1db9621ef334c0ccf0ba4965 (patch)
tree5c3917596a4540730ee7a7017d2f1b64760a2bca /test/functional/api/window_spec.lua
parent61e99217e68498e757b9f8b0c70978a9635ccbfa (diff)
parent47d3d0102fffbfd52b950c521e5d1e443ac7885f (diff)
downloadrneovim-facfc88b4ca004cf1db9621ef334c0ccf0ba4965.tar.gz
rneovim-facfc88b4ca004cf1db9621ef334c0ccf0ba4965.tar.bz2
rneovim-facfc88b4ca004cf1db9621ef334c0ccf0ba4965.zip
Merge pull request #21262 from zeertzjq/vim-8.2.1748
vim-patch:8.2.1748: closing split window in other tab may cause a crash
Diffstat (limited to 'test/functional/api/window_spec.lua')
-rw-r--r--test/functional/api/window_spec.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/api/window_spec.lua b/test/functional/api/window_spec.lua
index 48431ccfc7..774ec406a8 100644
--- a/test/functional/api/window_spec.lua
+++ b/test/functional/api/window_spec.lua
@@ -490,6 +490,8 @@ describe('API/win', function()
it('closing current (float) window of another tabpage #15313', function()
command('tabedit')
+ command('botright split')
+ local prevwin = curwin().id
eq(2, eval('tabpagenr()'))
local win = meths.open_win(0, true, {
relative='editor', row=10, col=10, width=50, height=10
@@ -499,7 +501,7 @@ describe('API/win', function()
eq(1, eval('tabpagenr()'))
meths.win_close(win, false)
- eq(1001, meths.tabpage_get_win(tab).id)
+ eq(prevwin, meths.tabpage_get_win(tab).id)
assert_alive()
end)
end)