Skip to content

Commit fdddb46

Browse files
committed
revert parameter name changes
1 parent ef062a4 commit fdddb46

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lua/nvim-tree/renderer/components/padding.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ local function check_siblings_for_folder(node, with_arrows)
1919
return false
2020
end
2121

22-
local function get_padding_indent_markers(depth, idx, num_children, markers, with_arrows, inline_arrows, node, early_stop)
22+
local function get_padding_indent_markers(depth, idx, nodes_number, markers, with_arrows, inline_arrows, node, early_stop)
2323
local base_padding = with_arrows and (not node.nodes or depth > 0) and " " or ""
2424
local padding = (inline_arrows or depth == 0) and base_padding or ""
2525

2626
if depth > 0 then
2727
local has_folder_sibling = check_siblings_for_folder(node, with_arrows)
2828
local indent = string.rep(" ", M.config.indent_width - 1)
29-
markers[depth] = idx ~= num_children
29+
markers[depth] = idx ~= nodes_number
3030
for i = 1, depth - early_stop do
3131
local glyph
32-
if idx == num_children and i == depth then
32+
if idx == nodes_number and i == depth then
3333
local bottom_width = M.config.indent_width - 2 + (with_arrows and not inline_arrows and has_folder_sibling and 2 or 0)
3434
glyph = M.config.indent_markers.icons.corner
3535
.. string.rep(M.config.indent_markers.icons.bottom, bottom_width)
@@ -46,7 +46,7 @@ local function get_padding_indent_markers(depth, idx, num_children, markers, wit
4646
padding = padding .. glyph
4747
elseif inline_arrows then
4848
padding = padding
49-
elseif idx ~= num_children and depth == i and not node.nodes and has_folder_sibling then
49+
elseif idx ~= nodes_number and depth == i and not node.nodes and has_folder_sibling then
5050
padding = padding .. base_padding .. glyph .. base_padding
5151
else
5252
padding = padding .. base_padding .. glyph
@@ -58,11 +58,11 @@ end
5858

5959
---@param depth integer
6060
---@param idx integer
61-
---@param num_children integer
61+
---@param nodes_number integer
6262
---@param node Node
6363
---@param markers table
6464
---@return HighlightedString[]
65-
function M.get_indent_markers(depth, idx, num_children, node, markers, early_stop)
65+
function M.get_indent_markers(depth, idx, nodes_number, node, markers, early_stop)
6666
local str = ""
6767

6868
local show_arrows = M.config.icons.show.folder_arrow
@@ -71,7 +71,7 @@ function M.get_indent_markers(depth, idx, num_children, node, markers, early_sto
7171
local indent_width = M.config.indent_width
7272

7373
if show_markers then
74-
str = str .. get_padding_indent_markers(depth, idx, num_children, markers, show_arrows, inline_arrows, node, early_stop or 0)
74+
str = str .. get_padding_indent_markers(depth, idx, nodes_number, markers, show_arrows, inline_arrows, node, early_stop or 0)
7575
else
7676
str = str .. string.rep(" ", depth * indent_width)
7777
end

0 commit comments

Comments
 (0)