fix(treesitter): select reset to "v" visualmode()

(cherry picked from commit facc21cc63)
This commit is contained in:
altermo
2026-03-29 16:19:40 +02:00
committed by github-actions[bot]
parent 8a79d3a3bb
commit 9f16ad8ca3

View File

@@ -364,6 +364,9 @@ local function visual_select(range)
ecol = #vim.fn.getline(erow + 1) + 1
end
-- reset visualmode() to 'v'
vim.cmd.normal({ 'v\27', bang = true })
vim.fn.setpos("'<", { 0, srow + 1, scol + 1, 0 })
vim.fn.setpos("'>", { 0, erow + 1, ecol, 0 })
if cursor_other_end_of_visual then