Skip to content

Commit

Permalink
fix: latest nightly is more strict about regtype
Browse files Browse the repository at this point in the history
  • Loading branch information
IndianBoy42 authored and gbprod committed May 29, 2024
1 parent 17ffaeb commit 0dc6c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/substitute/exchange.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ local prepare_exchange = function(vmode)
"SubstituteExchange",
{ marks.start.row - 1, regtype ~= "l" and marks.start.col or 0 },
{ marks.finish.row - 1, regtype ~= "l" and marks.finish.col + 1 or -1 },
{ regtype = vmode, inclusive = false }
{ regtype = ({ char = "v", line = "V" })[vmode], inclusive = false }
)

vim.b.exchange_origin = {
Expand Down

0 comments on commit 0dc6c1e

Please sign in to comment.