Skip to content

Commit 75ff64e

Browse files
przepompownia__alex-courtis
authored
fix: bad column offset when using full_name (#2629)
Co-authored-by: __ <__@__> Co-authored-by: Alexander Courtis <alex@courtis.org>
1 parent 74525ac commit 75ff64e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/nvim-tree/renderer/components/full-name.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ local function show()
5959
end
6060

6161
M.popup_win = vim.api.nvim_open_win(vim.api.nvim_create_buf(false, false), false, {
62-
relative = "cursor",
62+
relative = "win",
6363
row = 0,
64-
col = 1 - vim.fn.getcursorcharpos()[3],
64+
bufpos = { vim.api.nvim_win_get_cursor(0)[1] - 1, 0 },
6565
width = math.min(text_width, vim.o.columns - 2),
6666
height = 1,
6767
noautocmd = true,

0 commit comments

Comments
 (0)