@@ -19,17 +19,17 @@ local function check_siblings_for_folder(node, with_arrows)
19
19
return false
20
20
end
21
21
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 )
23
23
local base_padding = with_arrows and (not node .nodes or depth > 0 ) and " " or " "
24
24
local padding = (inline_arrows or depth == 0 ) and base_padding or " "
25
25
26
26
if depth > 0 then
27
27
local has_folder_sibling = check_siblings_for_folder (node , with_arrows )
28
28
local indent = string.rep (" " , M .config .indent_width - 1 )
29
- markers [depth ] = idx ~= num_children
29
+ markers [depth ] = idx ~= nodes_number
30
30
for i = 1 , depth - early_stop do
31
31
local glyph
32
- if idx == num_children and i == depth then
32
+ if idx == nodes_number and i == depth then
33
33
local bottom_width = M .config .indent_width - 2 + (with_arrows and not inline_arrows and has_folder_sibling and 2 or 0 )
34
34
glyph = M .config .indent_markers .icons .corner
35
35
.. 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
46
46
padding = padding .. glyph
47
47
elseif inline_arrows then
48
48
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
50
50
padding = padding .. base_padding .. glyph .. base_padding
51
51
else
52
52
padding = padding .. base_padding .. glyph
58
58
59
59
--- @param depth integer
60
60
--- @param idx integer
61
- --- @param num_children integer
61
+ --- @param nodes_number integer
62
62
--- @param node Node
63
63
--- @param markers table
64
64
--- @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 )
66
66
local str = " "
67
67
68
68
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
71
71
local indent_width = M .config .indent_width
72
72
73
73
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 )
75
75
else
76
76
str = str .. string.rep (" " , depth * indent_width )
77
77
end
0 commit comments