We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
win_width
text_width
1 parent 6656d82 commit 56ba24bCopy full SHA for 56ba24b
lua/nvim-tree/renderer/components/full-name.lua
@@ -56,7 +56,7 @@ local function show(opts)
56
-- windows width reduced by right aligned icons
57
local icon_ns_id = vim.api.nvim_get_namespaces()["NvimTreeExtmarks"]
58
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)
+ win_width = win_width - utils.extmarks_length(icon_extmarks)
60
61
if text_width < win_width then
62
return
0 commit comments