fix(treesitter): incremental selection: "vin" not always starts "v" #41016

(cherry picked from commit 59296a9fef)
This commit is contained in:
altermo
2026-07-28 12:14:32 +02:00
committed by github-actions[bot]
parent e37405ea52
commit 9a92f4a001

View File

@@ -364,7 +364,7 @@ local function visual_select(range)
ecol = #vim.fn.getline(erow + 1) + 1
end
if vim.api.nvim_get_mode().mode ~= 'v' then
if vim.fn.visualmode() ~= 'v' then
-- reset visualmode() to 'v'
vim.cmd.normal({ 'v\27', bang = true })
end