add padding first column
Some checks failed
CI / lint (5.1, 1.2.0) (push) Has been cancelled
CI / check (3.15.0, nightly) (push) Has been cancelled
CI / check (3.15.0, stable) (push) Has been cancelled
release-please / release-please (push) Has been cancelled

This commit is contained in:
2025-10-20 21:20:01 +03:00
parent 64e2192f52
commit 7c0f7e906a
2 changed files with 46 additions and 26 deletions

View File

@@ -22,8 +22,8 @@ local function check_siblings_for_folder(node, with_arrows)
end
local function get_padding_indent_markers(depth, idx, nodes_number, markers, with_arrows, inline_arrows, node, early_stop)
local base_padding = with_arrows and (not node.nodes or depth > 0) and " " or ""
local padding = (inline_arrows or depth == 0) and base_padding or ""
local base_padding = with_arrows and (not node.nodes or depth > 0) and " " or " "
local padding = (inline_arrows or depth == 0) and base_padding or " "
if depth > 0 then
local has_folder_sibling = check_siblings_for_folder(node, with_arrows)