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

This commit is contained in:
altermo
2026-03-29 16:19:40 +02:00
committed by Christian Clason
parent f2cdf73afc
commit facc21cc63

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