Skip to content

Commit

Permalink
Merge pull request #960 from NeogitOrg/update-status-message
Browse files Browse the repository at this point in the history
  • Loading branch information
CKolkey authored Nov 22, 2023
2 parents da90fa6 + b84833f commit df75660
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/neogit/status.lua
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,9 @@ local unstage = operation("unstage", function()
end)

local function discard_message(files, hunk_count)
if hunk_count > 0 then
if vim.api.nvim_get_mode() == "V" then
return "Discard selection?"
elseif hunk_count > 0 then
return string.format("Discard %d hunks?", hunk_count)
elseif #files > 1 then
return string.format("Discard %d files?", #files)
Expand Down

0 comments on commit df75660

Please sign in to comment.