mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 18:41:48 +00:00
fix(treesitter): handle &selection=exclusive
This commit is contained in:
@@ -357,6 +357,10 @@ local function get_selection()
|
||||
pos1, pos2 = pos2, pos1
|
||||
end
|
||||
|
||||
if vim.o.selection == 'exclusive' then
|
||||
pos2[3] = pos2[3] - 1
|
||||
end
|
||||
|
||||
if pos2[3] == #vim.fn.getline(pos2[2]) + 1 then
|
||||
pos2[2] = pos2[2] + 1
|
||||
pos2[3] = 0
|
||||
|
||||
Reference in New Issue
Block a user