diff options
author | Will Hopkins <willothyh@gmail.com> | 2024-04-24 18:14:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-25 09:14:05 +0800 |
commit | 16513b30337523dc64707309ee7fe3dd2247266d (patch) | |
tree | 634b79f4f01d2ef7e6c0d2ec5c6c2d88b09aa745 /test/functional/ui/float_spec.lua | |
parent | c32fcd1ed527236e52cfd78033685e713ec36d75 (diff) | |
download | rneovim-16513b30337523dc64707309ee7fe3dd2247266d.tar.gz rneovim-16513b30337523dc64707309ee7fe3dd2247266d.tar.bz2 rneovim-16513b30337523dc64707309ee7fe3dd2247266d.zip |
feat(api): allow floats to be opened in non-current tabpage (#28480)
\
Diffstat (limited to 'test/functional/ui/float_spec.lua')
-rw-r--r-- | test/functional/ui/float_spec.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua index b7fb9dbd32..131cc15bfb 100644 --- a/test/functional/ui/float_spec.lua +++ b/test/functional/ui/float_spec.lua @@ -532,7 +532,10 @@ describe('float window', function() local closed_win = api.nvim_get_current_win() command('close') local buf = api.nvim_create_buf(false,false) - api.nvim_open_win(buf, true, {relative='win', win=closed_win, width=1, height=1, bufpos={0,0}}) + eq( + 'Invalid window id: ' .. closed_win, + pcall_err(api.nvim_open_win, buf, true, {relative='win', win=closed_win, width=1, height=1, bufpos={0,0}}) + ) assert_alive() end) |