mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
Update test/functional/plugin/lsp_spec.lua
This commit is contained in:
committed by
github-actions[bot]
parent
b0b383bff9
commit
5aabe5695f
@ -3358,16 +3358,16 @@ describe('LSP', function()
|
||||
eq({ 40, 3 }, exec_lua [[ return {vim.lsp.util._make_floating_popup_size(contents)} ]])
|
||||
end)
|
||||
it('handles empty line', function()
|
||||
exec_lua(function()
|
||||
exec_lua([[
|
||||
_G.contents = {
|
||||
'',
|
||||
}
|
||||
end)
|
||||
]])
|
||||
eq(
|
||||
{ 20, 1 },
|
||||
exec_lua(function()
|
||||
exec_lua([[
|
||||
return { vim.lsp.util._make_floating_popup_size(_G.contents, { width = 20 }) }
|
||||
end)
|
||||
]])
|
||||
)
|
||||
end)
|
||||
end)
|
||||
|
Reference in New Issue
Block a user