mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
lsp: fix _make_floating_popup_size when wrap_at is nil (#14359)
This commit is contained in:
parent
e652b2987a
commit
cd3e74201a
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user