Skip to content

Commit d5ad0ea

Browse files
fix: Calculate new line in ranged comment after all hunks correctly (#211)
fix: Calculate new line in ranged comment after all hunks correctly
1 parent e6cc34c commit d5ad0ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/gitlab/hunks/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ M.calculate_matching_line_new = function(old_sha, new_sha, file_path, line_numbe
274274
end
275275

276276
-- TODO: Possibly handle lines that are out of range in the new files
277-
return line_number
277+
return line_number + net_change + 1
278278
end
279279

280280
return M

0 commit comments

Comments
 (0)