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:
committed by
GitHub
parent
dba15127fe
commit
c3d7f26e3c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user