mirror of
https://github.com/neovim/neovim.git
synced 2026-07-31 20:59:11 +00:00
fix(treesitter): incremental selection: "vin" not always starts "v" #41016
(cherry picked from commit 59296a9fef)
This commit is contained in:
committed by
github-actions[bot]
parent
e37405ea52
commit
9a92f4a001
@@ -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