fix(picker.undo): add newlines
Some checks failed
CI / ci (push) Failing after 0s

This commit is contained in:
Folke Lemaitre 2025-02-02 09:50:08 +01:00
parent 5f45a596fc
commit 72826a72de
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -375,7 +375,7 @@ function M.undo(opts, ctx)
end)
vim.o.eventignore = ei
local diff = vim.diff(table.concat(before, "\n"), table.concat(after, "\n"), opts.diff) --[[@as string]]
local diff = vim.diff(table.concat(before, "\n") .. "\n", table.concat(after, "\n") .. "\n", opts.diff) --[[@as string]]
local changes = {} ---@type string[]
local added, removed = 0, 0