fix: Allow reply on Gitlab buffer (#375)

Fixes issue where we were blocking reply creation due to a recent update

This is a #PATCH release
This commit is contained in:
Harrison (Harry) Cramer
2024-09-14 20:59:38 -04:00
committed by GitHub
parent dba15127fe
commit c3d7f26e3c
3 changed files with 17 additions and 11 deletions

View File

@@ -244,8 +244,16 @@ M.reply = function(tree)
local discussion_id = tostring(discussion_node.id)
local comment = require("gitlab.actions.comment")
local unlinked = tree.bufnr == M.unlinked_bufnr
local layout = comment.create_comment_layout({ ranged = false, discussion_id = discussion_id, unlinked = unlinked })
layout:mount()
local layout = comment.create_comment_layout({
ranged = false,
discussion_id = discussion_id,
unlinked = unlinked,
reply = true,
})
if layout then
layout:mount()
end
end
-- This function (settings.keymaps.discussion_tree.delete_comment) will trigger a popup prompting you to delete the current comment