diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-17 22:30:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-17 22:30:01 -0400 |
commit | 9817d991403ea3646b9a01234d12c7661ff8c62b (patch) | |
tree | 7524b473a009b62fd542845b0ecfbafba5173225 /runtime/lua/vim/lsp/util.lua | |
parent | e744631647a0b1fcd33d09f48aa206a16459c53a (diff) | |
parent | 6d066af27a9af8ecfa2beaf22ac90ca0ec0a40b4 (diff) | |
download | rneovim-9817d991403ea3646b9a01234d12c7661ff8c62b.tar.gz rneovim-9817d991403ea3646b9a01234d12c7661ff8c62b.tar.bz2 rneovim-9817d991403ea3646b9a01234d12c7661ff8c62b.zip |
Merge pull request #13043 from tkuneck/fix-min-float-win-size
[RDY] Opts.wrap_at is sometimes a bool, ensure it falls back to a valid num…
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 53f88dea7d..b5f171a985 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -807,7 +807,7 @@ function M.fancy_floating_markdown(contents, opts) h.start = h.start + i - 1 h.finish = h.finish + i - 1 if h.finish + 1 <= #stripped then - table.insert(stripped, h.finish + 1, string.rep("─", math.min(width, opts.wrap_at))) + table.insert(stripped, h.finish + 1, string.rep("─", math.min(width, opts.wrap_at or width))) height = height + 1 end end |