We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfcb945 commit 05d6983Copy full SHA for 05d6983
lua/orgmode/files/headline.lua
@@ -243,11 +243,7 @@ function Headline:get_outline_path()
243
end
244
245
-- reverse headline order
246
- local outer_to_inner_parent_headlines = {}
247
- for i = #inner_to_outer_parent_headlines, 1, -1 do
248
- table.insert(outer_to_inner_parent_headlines, inner_to_outer_parent_headlines[i])
249
- end
250
-
+ local outer_to_inner_parent_headlines = utils.reverse(inner_to_outer_parent_headlines)
251
local outline_path = table.concat(outer_to_inner_parent_headlines, '/')
252
return outline_path
253
0 commit comments