Skip to content

Commit

Permalink
fix(concealer): do not render missing node (#1004)
Browse files Browse the repository at this point in the history
  • Loading branch information
champignoom committed Aug 1, 2023
1 parent 3db1001 commit 08c7d19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/neorg/modules/core/concealer/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -957,10 +957,14 @@ local function query_get_nodes(query, document_root, bufid, row_start_0b, row_en
local result = {}
local concealed_node_ids = {}
for id, node in query:iter_captures(document_root, bufid, row_start_0b, row_end_0bex) do
if node:missing() then
goto continue
end
if query.captures[id] == "icon-concealed" then
concealed_node_ids[node:id()] = true
end
table.insert(result, node)
::continue::
end
return result, concealed_node_ids
end
Expand Down

0 comments on commit 08c7d19

Please sign in to comment.