Skip to content

Commit

Permalink
docs(toc): explain cursor cache invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
champignoom committed Nov 28, 2023
1 parent b9ced90 commit 9f0683f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neorg/modules/core/qol/toc/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ module.on_event = function(event)
toc_title = vim.split(module.public.parse_toc_macro(previous_buffer) or "Table of Contents", "\n")
module.public.update_toc(namespace, toc_title, previous_buffer, previous_window, buffer, window)
if module.config.public.sync_cursorline then
last_row_of_norg_win[previous_window] = nil
last_row_of_norg_win[previous_window] = nil -- invalidate cursor cache
module.public.update_cursor(previous_buffer, previous_window, buffer, window)
end
end,
Expand Down

0 comments on commit 9f0683f

Please sign in to comment.