Skip to content

Commit

Permalink
fix(core.promo): type errors with events
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Jan 6, 2024
1 parent 122c9df commit 0016fdd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/neorg/modules/core/promo/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,11 @@ module.on_event = neorg.utils.wrap_dotrepeat(function(event)

if modules.loaded_modules["core.concealer"] then
modules.broadcast_event(
modules.create_event(
assert(modules.create_event(
modules.loaded_modules["core.concealer"],
"core.concealer.events.update_region",
{ start = start_pos[1] - 1, ["end"] = end_pos[1] + 2 }
)
))
)
end
elseif event.split_type[2] == "core.promo.demote_range" then
Expand All @@ -341,11 +341,11 @@ module.on_event = neorg.utils.wrap_dotrepeat(function(event)

if modules.loaded_modules["core.concealer"] then
modules.broadcast_event(
modules.create_event(
assert(modules.create_event(
modules.loaded_modules["core.concealer"],
"core.concealer.events.update_region",
{ start = start_pos[1] - 1, ["end"] = end_pos[1] + 2 }
)
))
)
end
end
Expand Down

0 comments on commit 0016fdd

Please sign in to comment.