lsp: fix _make_floating_popup_size when wrap_at is nil (#14359)

This commit is contained in:
Michael Lingelbach 2021-04-14 04:01:14 -07:00 committed by GitHub
parent e652b2987a
commit cd3e74201a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1220,7 +1220,7 @@ function M._make_floating_popup_size(contents, opts)
width = width - (width + border_width - screen_width) width = width - (width + border_width - screen_width)
end end
if wrap_at > width then if wrap_at and wrap_at > width then
wrap_at = width wrap_at = width
end end