mirror of
https://github.com/neovim/neovim.git
synced 2026-08-28 01:51:52 +00:00
fix(treesitter): handle &selection=exclusive
This commit is contained in:
@@ -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 })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user