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:
parent
74525ac047
commit
75ff64e666
@ -59,9 +59,9 @@ local function show()
|
|||||||
end
|
end
|
||||||
|
|
||||||
M.popup_win = vim.api.nvim_open_win(vim.api.nvim_create_buf(false, false), false, {
|
M.popup_win = vim.api.nvim_open_win(vim.api.nvim_create_buf(false, false), false, {
|
||||||
relative = "cursor",
|
relative = "win",
|
||||||
row = 0,
|
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),
|
width = math.min(text_width, vim.o.columns - 2),
|
||||||
height = 1,
|
height = 1,
|
||||||
noautocmd = true,
|
noautocmd = true,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user