Skip to content

Commit

Permalink
fix: Fixed a bug causing things not to render when scrolling short di…
Browse files Browse the repository at this point in the history
…stances
  • Loading branch information
OXY2DEV committed Aug 25, 2024
1 parent ba79954 commit 8f0b69a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftplugin/markdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ vim.api.nvim_create_autocmd(update_events, {

-- Experimental
-- May introduce bugs
if vim.list_contains({ "CursorMoved", "CursorMovedI" }, event.event) and math.abs(prev_pos - current_pos) < 100 then
if cached_mode == mode and vim.list_contains({ "CursorMoved", "CursorMovedI" }, event.event) and math.abs(prev_pos - current_pos) < 100 then
prev_pos = current_pos;
return;
end
Expand Down

0 comments on commit 8f0b69a

Please sign in to comment.