Skip to content

Commit

Permalink
rename small
Browse files Browse the repository at this point in the history
  • Loading branch information
tronikelis committed Nov 2, 2024
1 parent 4376797 commit 2e0a4a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/conflict-marker/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,14 @@ function Conflict:choose_theirs()
return
end

local start = utils.target_in_range(from, to, self:two_way_search(CONFLICT_MID))
local mid = utils.target_in_range(from, to, self:two_way_search(CONFLICT_MID))
local ending = utils.target_in_range(from, to, self:two_way_search(CONFLICT_END))
if not start or not ending then
if not mid or not ending then
return
end

vim.api.nvim_buf_set_lines(self.bufnr, ending - 1, ending, true, {})
vim.api.nvim_buf_set_lines(self.bufnr, from - 1, start, true, {})
vim.api.nvim_buf_set_lines(self.bufnr, from - 1, mid, true, {})
end

---@return integer?, integer?
Expand Down

0 comments on commit 2e0a4a5

Please sign in to comment.