Skip to content

Commit

Permalink
apply
Browse files Browse the repository at this point in the history
  • Loading branch information
amirbilu committed Jan 30, 2025
1 parent 708b112 commit 0d321dc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lua/tabnine/chat/apply.lua
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,10 @@ M.accept = function()
if start_line and end_line then
-- Replace only the comparable code portion with the new code
api.nvim_buf_set_lines(original_buf, start_line, end_line + 1, false, new_code)
else
print("Could not find the exact location of the comparable code in the original buffer.")
end

-- Close the diff windows
M.close()
else
print("Tabnine diff windows not found or are no longer valid.")
end
end

Expand All @@ -128,8 +124,7 @@ M.reject = function()

-- Close the diff windows
M.close()
else
print("Tabnine diff windows not found or are no longer valid.")
end
end

return M

0 comments on commit 0d321dc

Please sign in to comment.