Skip to content

Commit 870b55d

Browse files
jakubbortlikharrisoncramer
authored andcommitted
Fix: Store reviewer data before creating comment popup (#476)
1 parent 3bad682 commit 870b55d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lua/gitlab/reviewer/init.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,18 @@ M.get_reviewer_data = function(current_win)
196196
local opposite_bufnr = new_sha_focused and layout.a.file.bufnr or layout.b.file.bufnr
197197

198198
return {
199+
<<<<<<< HEAD
199200
old_file_name = M.is_file_renamed() and layout.a.file.path or "",
200201
file_name = layout.b.file.path,
202+
||||||| parent of f57cc84 (Fix: Store reviewer data before creating comment popup (#476))
203+
old_file_name = layout.a.file.path,
204+
file_name = layout.b.file.path,
205+
=======
206+
-- TODO: swap 'a' and 'b' to fix lua/gitlab/actions/comment.lua:158, and hopefully also
207+
-- lua/gitlab/indicators/diagnostics.lua:129.
208+
file_name = layout.a.file.path,
209+
old_file_name = M.is_file_renamed() and layout.b.file.path or "",
210+
>>>>>>> f57cc84 (Fix: Store reviewer data before creating comment popup (#476))
201211
old_line_from_buf = old_line,
202212
new_line_from_buf = new_line,
203213
modification_type = modification_type,

0 commit comments

Comments
 (0)