Skip to content

Commit

Permalink
fix(concealer): do not render on range change if concealer is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
champignoom authored and vhyrro committed Nov 22, 2023
1 parent 8cf5205 commit 9b0c31a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/neorg/modules/core/concealer/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1251,6 +1251,11 @@ local function handle_init_event(event)
_n_byte_prev ---@diagnostic disable-line -- TODO: type error workaround <pysan3>
)
assert(tag == "lines")

if not module.private.enabled then
return
end

mark_line_range_changed(bufid, row_start_0b, row_updated_0bex)
end

Expand Down

0 comments on commit 9b0c31a

Please sign in to comment.