fix: bad column offset when using full_name (#2629)

Co-authored-by: __ <__@__>
Co-authored-by: Alexander Courtis <alex@courtis.org>
This commit is contained in:
Tomasz N 2024-01-21 05:37:46 +01:00 committed by GitHub
parent 74525ac047
commit 75ff64e666
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,9 +59,9 @@ local function show()
end
M.popup_win = vim.api.nvim_open_win(vim.api.nvim_create_buf(false, false), false, {
relative = "cursor",
relative = "win",
row = 0,
col = 1 - vim.fn.getcursorcharpos()[3],
bufpos = { vim.api.nvim_win_get_cursor(0)[1] - 1, 0 },
width = math.min(text_width, vim.o.columns - 2),
height = 1,
noautocmd = true,