diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-10-17 21:39:49 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-10-17 21:39:49 +0800 |
commit | 14a84ec169ca8ca29a80237e82f2bb8e15a28365 (patch) | |
tree | 7a977e5685d2058dca7b3573423720bfe4807c10 | |
parent | 46eabe1ac1f70d0d7b199cb7e505b275b2f01bff (diff) | |
download | rneovim-14a84ec169ca8ca29a80237e82f2bb8e15a28365.tar.gz rneovim-14a84ec169ca8ca29a80237e82f2bb8e15a28365.tar.bz2 rneovim-14a84ec169ca8ca29a80237e82f2bb8e15a28365.zip |
test: add a test for #20684
-rw-r--r-- | test/functional/ui/float_spec.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua index 1a9a13f7d4..9ef36cf5ae 100644 --- a/test/functional/ui/float_spec.lua +++ b/test/functional/ui/float_spec.lua @@ -430,6 +430,13 @@ describe('float window', function() assert_alive() end) + it("'scroll' is computed correctly when opening float with splitkeep=screen #20684", function() + meths.set_option('splitkeep', 'screen') + local float_opts = {relative = 'editor', row = 1, col = 1, width = 10, height = 10} + local float_win = meths.open_win(0, true, float_opts) + eq(5, meths.win_get_option(float_win, 'scroll')) + 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 |