Fixes delete comment default behavior (#97)

This commit is contained in:
Daniele Isoni
2023-11-15 13:20:48 +01:00
committed by GitHub
parent deed861871
commit cd21cdb723

View File

@@ -546,10 +546,9 @@ M.delete_comment = function(tree, unlinked)
vim.ui.select({ "Confirm", "Cancel" }, { vim.ui.select({ "Confirm", "Cancel" }, {
prompt = "Delete comment?", prompt = "Delete comment?",
}, function(choice) }, function(choice)
if choice == "Cancel" then if choice == "Confirm" then
return M.send_deletion(tree, unlinked)
end end
M.send_deletion(tree, unlinked)
end) end)
end end