Skip to content

Commit 56ba24b

Browse files
committed
fix: decrease win_width instead of increasing text_width when computing condition for full name float to show
1 parent 6656d82 commit 56ba24b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ local function show(opts)
5656
-- windows width reduced by right aligned icons
5757
local icon_ns_id = vim.api.nvim_get_namespaces()["NvimTreeExtmarks"]
5858
local icon_extmarks = vim.api.nvim_buf_get_extmarks(0, icon_ns_id, { line_nr - 1, 0 }, { line_nr - 1, -1 }, { details = true })
59-
text_width = text_width + utils.extmarks_length(icon_extmarks)
59+
win_width = win_width - utils.extmarks_length(icon_extmarks)
6060

6161
if text_width < win_width then
6262
return

0 commit comments

Comments
 (0)