fix(treesitter): handle &selection=exclusive

This commit is contained in:
altermo
2026-08-01 18:13:21 +02:00
parent 77dfa02f3e
commit 8695579636
2 changed files with 8 additions and 0 deletions

View File

@@ -194,6 +194,10 @@ function M.visual_select(range)
cursor_other_end_of_selection = true
end
if vim.o.selection == 'exclusive' then
end_col = end_col + 1
end
vim.fn.setpos("'<", { 0, start_row + 1, start_col + 1, 0 })
vim.fn.setpos("'>", { 0, end_row + 1, end_col, 0 })