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.
1 parent 018a078 commit c988e28Copy full SHA for c988e28
1 file changed
lua/nvim-tree/view.lua
@@ -319,9 +319,9 @@ local function grow()
319
end
320
321
local final_width = M.View.initial_width
322
- local max_width = math.huge
323
- if M.View.max_width ~= -1 then
324
- max_width = get_width(M.View.max_width)
+ local max_width = get_width(M.View.max_width)
+ if max_width == -1 then
+ max_width = math.huge
325
326
327
local ns_id = vim.api.nvim_get_namespaces()["NvimTreeExtmarks"]
0 commit comments