Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(concealer): tolerate duplicate marks caused by undo during rendering #1015

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lua/neorg/modules/core/concealer/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,10 @@ local function render_window_buffer(bufid)
local row_nomark_start_0b, row_nomark_end_0bin
local i_flag = 1
for i = row_start_0b, row_end_0bex - 1 do
while i_flag <= #prettify_flags_0b and i > prettify_flags_0b[i_flag][2] do
i_flag = i_flag + 1
end

if i_flag <= #prettify_flags_0b and i == prettify_flags_0b[i_flag][2] then
i_flag = i_flag + 1
else
Expand Down
Loading