aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-09-23 14:42:59 +0800
committerGitHub <noreply@github.com>2023-09-23 14:42:59 +0800
commitc0a29931e29bbb40650df01918826cdb64e8fc32 (patch)
tree83ba5c84c404f0e6dc7673a0f085a24cab9732e1 /test
parentc88bb658ce6fb12cca3e5324d8a15d1859d095cd (diff)
downloadrneovim-c0a29931e29bbb40650df01918826cdb64e8fc32.tar.gz
rneovim-c0a29931e29bbb40650df01918826cdb64e8fc32.tar.bz2
rneovim-c0a29931e29bbb40650df01918826cdb64e8fc32.zip
fix(unhide): close floating windows first (#25318)
Diffstat (limited to 'test')
-rw-r--r--test/functional/ui/float_spec.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua
index 93ca1aef3f..e21e4e4aad 100644
--- a/test/functional/ui/float_spec.lua
+++ b/test/functional/ui/float_spec.lua
@@ -522,6 +522,16 @@ describe('float window', function()
eq(5, meths.get_option_value('scroll', {win=float_win.id}))
end)
+ it(':unhide works when there are floating windows #17797', function()
+ local float_opts = {relative = 'editor', row = 1, col = 1, width = 10, height = 10}
+ local w0 = curwin()
+ meths.open_win(0, false, float_opts)
+ meths.open_win(0, false, float_opts)
+ eq(3, #meths.list_wins())
+ command('unhide')
+ eq({ w0 }, meths.list_wins())
+ end)
+
describe('with only one tabpage,', function()
local float_opts = {relative = 'editor', row = 1, col = 1, width = 1, height = 1}
local old_buf, old_win