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

This commit is contained in:
Michael Lingelbach
2021-04-14 13:01:14 +02:00
committed by GitHub
parent e652b2987a
commit cd3e74201a
+1 -1
View File
@@ -1220,7 +1220,7 @@ function M._make_floating_popup_size(contents, opts)
width = width - (width + border_width - screen_width)
end
if wrap_at > width then
if wrap_at and wrap_at > width then
wrap_at = width
end