Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lua/gitlab/actions/comment.lua
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ local build_suggestion = function()
local backticks = "```"
local selected_lines = u.get_lines(M.start_line, M.end_line)

for line in ipairs(selected_lines) do
if string.match(line, "^```$") then
for _, line in ipairs(selected_lines) do
if string.match(line, "^```%S*$") then
backticks = "````"
break
end
Expand Down