aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2021-10-03 08:36:24 +0800
committerGitHub <noreply@github.com>2021-10-02 17:36:24 -0700
commitb3e815094bad6c28b758bc7538bf1b13936660fc (patch)
tree5fcbc50b6b1d8d0b7ec31cde94031914cc676b01 /runtime/lua/vim/lsp/util.lua
parentc5e8c39102afb29213c5f4ead91d08123f19e7a9 (diff)
downloadrneovim-b3e815094bad6c28b758bc7538bf1b13936660fc.tar.gz
rneovim-b3e815094bad6c28b758bc7538bf1b13936660fc.tar.bz2
rneovim-b3e815094bad6c28b758bc7538bf1b13936660fc.zip
fix(float)!: always anchor to corner of window including border #15832
N, W, S, E are all inclusive, i.e., always anchor to the exact corner of the window (including border). This line may also need change in this case (change 0 to -1): This is most consistent and easiest to reason about, especially with GUIs whose border do not need to have width/height of 1/1 in cell units. Fix #15789
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index e95f170427..09d0a8e62a 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -975,7 +975,7 @@ function M.make_floating_popup_options(width, height, opts)
else
anchor = anchor..'S'
height = math.min(lines_above, height)
- row = -get_border_size(opts).height
+ row = 0
end
if vim.fn.wincol() + width + (opts.offset_x or 0) <= api.nvim_get_option('columns') then