Skip to content

Commit

Permalink
fixing crash in nighly due to extmarks being cleared after buffer lin…
Browse files Browse the repository at this point in the history
…es are removed
  • Loading branch information
MagicDuck committed Aug 30, 2024
1 parent e0ba971 commit 986fca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/grug-far/render/resultsList.lua
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ end
function M.clear(buf, context)
-- remove all lines after heading and add one blank line
local headerRow = context.state.headerRow
setBufLines(buf, headerRow, -1, false, { '' })
vim.api.nvim_buf_clear_namespace(buf, context.locationsNamespace, 0, -1)
setBufLines(buf, headerRow, -1, false, { '' })
context.state.resultLocationByExtmarkId = {}
context.state.resultsLastFilename = nil
context.state.resultMatchLineCount = 0
Expand Down

0 comments on commit 986fca5

Please sign in to comment.