mirror of
https://github.com/neovim/neovim.git
synced 2026-07-31 04:39:07 +00:00
fix(treesitter): incremental selection: "vin" not always starts "v" #41016
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user