Finally fixed commenting on deletions

This commit is contained in:
Harrison Cramer
2023-04-23 19:02:37 -04:00
parent c479daa5fb
commit c2f1eb2b5b
2 changed files with 2 additions and 1 deletions

View File

@@ -49,12 +49,14 @@ M.confirm_create_comment = function(text)
local is_base_file = relative_file_path:find(".git")
if is_base_file then -- We are looking at a deletion.
local _, path = u.split_diff_view_filename(relative_file_path)
relative_file_path = path
sha = M.find_deletion_commit(path)
if sha == "" then
return
end
end
print(relative_file_path)
Job:new({
command = state.BIN,