Skip to content

Commit

Permalink
fix(concealer): stop concealer if buffer is not loaded (#836)
Browse files Browse the repository at this point in the history
Co-authored-by: d-r-a-b <>
  • Loading branch information
d-r-a-b authored May 4, 2023
1 parent a295adf commit 6aa9fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neorg/modules/core/concealer/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1505,7 +1505,7 @@ module.on_event = function(event)
or (block_bottom * module.config.public.performance.increment - 1 >= 0)
local block_top_valid = block_top * module.config.public.performance.increment - 1 < line_count

if not block_bottom_valid and not block_top_valid then
if not vim.api.nvim_buf_is_loaded(buf) or (not block_bottom_valid and not block_top_valid) then
timer:stop()
return
end
Expand Down

0 comments on commit 6aa9fd3

Please sign in to comment.