Skip to content

Commit

Permalink
fix(picker.undo): add newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Feb 2, 2025
1 parent 5f45a59 commit 72826a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/snacks/picker/source/vim.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 72826a7

Please sign in to comment.