fix(lsp): account for border height in max floating popup height (#25539)

This commit is contained in:
LW
2023-10-08 01:09:25 -07:00
committed by GitHub
parent 6823fdb20b
commit 9abced6ad9
2 changed files with 11 additions and 2 deletions

View File

@@ -212,6 +212,14 @@ describe('vim.lsp.util', function()
it('places window below for anchor_bias = "below"', function ()
assert_anchor('below', 'N')
end)
it('bordered window truncates dimensions correctly', function ()
local opts = exec_lua([[
return vim.lsp.util.make_floating_popup_options(100, 100, { border = 'single' })
]])
eq(56, opts.height)
end)
end)
end)