From 5b786b048bb71a52175fb863db1a1c41c510150a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20F=2E=20Bortl=C3=ADk?= Date: Thu, 17 Oct 2024 13:33:53 +0200 Subject: [PATCH] fix: enable replying if tree is in a different tab --- lua/gitlab/actions/comment.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/gitlab/actions/comment.lua b/lua/gitlab/actions/comment.lua index a2f3d1fd..18140765 100644 --- a/lua/gitlab/actions/comment.lua +++ b/lua/gitlab/actions/comment.lua @@ -166,7 +166,7 @@ end ---@param opts LayoutOpts ---@return NuiLayout|nil M.create_comment_layout = function(opts) - if opts.unlinked ~= true then + if opts.unlinked ~= true and opts.discussion_id == nil then -- Check that diffview is initialized if reviewer.tabnr == nil then u.notify("Reviewer must be initialized first", vim.log.levels.ERROR)