Skip to content

Commit

Permalink
fix(sources): markdown: error when clicking on markdown heading symbol
Browse files Browse the repository at this point in the history
1. The siblings fields is not created properly
  • Loading branch information
bekaboo committed Jun 4, 2023
1 parent 3ef46f2 commit ab3ed40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/dropbar/sources/markdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ local function convert(symbol, symbols, list_idx, buf)
return self.children
end
if k == 'siblings' or k == 'sibling_idx' then
self.siblings = { self }
self.siblings = { convert(symbol, symbols, list_idx, buf) }
for i = list_idx - 1, 1, -1 do
if symbols[i].level < symbol.level then
break
Expand Down

0 comments on commit ab3ed40

Please sign in to comment.