diff options
author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-04-14 04:01:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-14 13:01:14 +0200 |
commit | cd3e74201a8fcbe5ba04000a57e05f102c04496c (patch) | |
tree | 2a66a7a2c5490b648ccb82b37628ad0a11562832 /runtime/lua/vim/lsp/util.lua | |
parent | e652b2987a35b85a239740c6d591792bcf5de412 (diff) | |
download | rneovim-cd3e74201a8fcbe5ba04000a57e05f102c04496c.tar.gz rneovim-cd3e74201a8fcbe5ba04000a57e05f102c04496c.tar.bz2 rneovim-cd3e74201a8fcbe5ba04000a57e05f102c04496c.zip |
lsp: fix _make_floating_popup_size when wrap_at is nil (#14359)
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r-- | runtime/lua/vim/lsp/util.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |