Skip to content

Commit

Permalink
fix(toolbox): remove incorrect adjustment of marks
Browse files Browse the repository at this point in the history
  • Loading branch information
notEvil committed Jun 21, 2023
1 parent 6a3b241 commit 6701993
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lua/legendary/toolbox.lua
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,7 @@ function M.get_marks()
local cursor = vim.api.nvim_win_get_cursor(0)
local cline, ccol = cursor[1], cursor[2]
local vline, vcol = vim.fn.line('v'), vim.fn.col('v')
if ccol > vcol then
local swap = vcol
vcol = ccol + 1
ccol = swap
end
return { cline, ccol, vline, vcol }
return { vline, vcol, cline, ccol + 1 }
end

---Set visual marks from a table in the format
Expand Down

0 comments on commit 6701993

Please sign in to comment.