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

This commit is contained in:
altermo
2026-07-28 12:14:32 +02:00
committed by GitHub
parent 93f427f603
commit 59296a9fef

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