Skip to content

Commit

Permalink
fix(concealer): tolerate duplicate marks caused by undo during render…
Browse files Browse the repository at this point in the history
…ing (#1015)

fixes #1007
  • Loading branch information
champignoom committed Aug 7, 2023
1 parent 0b3df86 commit 44bb353
Showing 1 changed file with 4 additions and 0 deletions.
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 @@ -1139,6 +1139,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

0 comments on commit 44bb353

Please sign in to comment.