Skip to content

Commit

Permalink
Ensure item name is properly escaped before passing to delete()
Browse files Browse the repository at this point in the history
  • Loading branch information
CKolkey committed Dec 9, 2024
1 parent c224db3 commit 4003847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neogit/buffers/status/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ local function cleanup_items(...)
api.nvim_buf_delete(bufnr, { force = false })
end

fn.delete(item.name)
fn.delete(fn.fnameescape(item.name))
end
end

Expand Down

0 comments on commit 4003847

Please sign in to comment.