Fixes delete comment default behavior (#97)
This commit is contained in:
@@ -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
|
|
||||||
end
|
|
||||||
M.send_deletion(tree, unlinked)
|
M.send_deletion(tree, unlinked)
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user