Skip to content

Commit

Permalink
fix(looking-glass): ensure both the target buffer and the source are …
Browse files Browse the repository at this point in the history
…loaded before pursuing any operations
  • Loading branch information
vhyrro committed Aug 9, 2023
1 parent ba2899d commit fba064d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neorg/modules/core/looking-glass/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module.public = {
vim.api.nvim_create_autocmd({ "TextChanged", "TextChangedI" }, {
buffer = source,
callback = function()
if not vim.api.nvim_buf_is_loaded(target) then
if not vim.api.nvim_buf_is_loaded(target) or not vim.api.nvim_buf_is_loaded(source) then
return true
end

Expand Down

0 comments on commit fba064d

Please sign in to comment.