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" }, {
prompt = "Delete comment?",
}, function(choice)
if choice == "Cancel" then
return
if choice == "Confirm" then
M.send_deletion(tree, unlinked)
end
M.send_deletion(tree, unlinked)
end)
end