refacto: add get_nodes_starting_line core util

This commit is contained in:
kiyan
2022-03-26 14:46:44 +01:00
parent 20433ced8a
commit 1831417f05
7 changed files with 20 additions and 14 deletions

View File

@@ -24,7 +24,7 @@ function M.fn(fname)
return
end
local i = view.is_root_folder_visible() and 1 or 0
local i = core.get_nodes_starting_line() - 1
local tree_altered = false
local function iterate_nodes(nodes)