From cd3e74201a8fcbe5ba04000a57e05f102c04496c Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Wed, 14 Apr 2021 04:01:14 -0700 Subject: lsp: fix _make_floating_popup_size when wrap_at is nil (#14359) --- runtime/lua/vim/lsp/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua/vim/lsp/util.lua') diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index 325dc044be..28a669778a 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -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 -- cgit