mirror of
https://github.com/neovim/neovim.git
synced 2026-04-27 17:54:10 +00:00
vim-patch:9.1.0430: getregionpos() doesn't handle one char selection (#28924)
Problem: getregionpos() doesn't handle one char selection.
Solution: Handle startspaces differently when is_oneChar is set.
Also add a test for an exclusive charwise selection with
multibyte chars (zeertzjq)
closes: vim/vim#14825
52a6f34887
This commit is contained in:
4
runtime/lua/vim/_meta/vimfn.lua
generated
4
runtime/lua/vim/_meta/vimfn.lua
generated
@@ -3596,8 +3596,8 @@ function vim.fn.getregion(pos1, pos2, opts) end
|
||||
--- the offset in screen columns from the start of the character.
|
||||
--- E.g., a position within a <Tab> or after the last character.
|
||||
--- If the "off" number of an ending position is non-zero, it is
|
||||
--- the character's number of cells included in the selection,
|
||||
--- otherwise the whole character is included.
|
||||
--- the offset of the character's first cell not included in the
|
||||
--- selection, otherwise all its cells are included.
|
||||
---
|
||||
--- @param pos1 table
|
||||
--- @param pos2 table
|
||||
|
||||
Reference in New Issue
Block a user