Skip to content

Commit

Permalink
Fix suggestion on renamed files issue
Browse files Browse the repository at this point in the history
  • Loading branch information
harrisoncramer committed Nov 8, 2024
1 parent 554ddaf commit 46576cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lua/gitlab/actions/comment.lua
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ M.create_comment_suggestion = function()
local layout = M.create_comment_layout({ ranged = range_length > 0, unlinked = false })
if layout ~= nil then
layout:mount()
else
return -- Failure in creating the comment layout
end
vim.schedule(function()
if suggestion_lines then
Expand Down
3 changes: 2 additions & 1 deletion lua/gitlab/annotations.lua
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@
---@class DiffviewInfo
---@field modification_type string
---@field file_name string
---@field old_file_name string -- Relevant for renamed files
---Relevant for renamed files only, the name of the file in the previous commit
---@field old_file_name string
---@field current_bufnr integer
---@field new_sha_win_id integer
---@field old_sha_win_id integer
Expand Down

0 comments on commit 46576cf

Please sign in to comment.