mirror of
https://github.com/neovim/neovim.git
synced 2026-04-06 07:38:31 +00:00
fix(treesitter): select reset to "v" visualmode()
(cherry picked from commit facc21cc63)
This commit is contained in:
committed by
github-actions[bot]
parent
8a79d3a3bb
commit
9f16ad8ca3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user