diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-06-03 07:54:29 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-02 23:54:29 +0000 |
| commit | aa4fa2496387c962ee8b4cbd7720396ec7596dbd (patch) | |
| tree | 820d3dd0a4f55c1ccc22aca0fa25fdb14e40476d /runtime/lua/vim/_meta/vimfn.lua | |
| parent | 9c9c7ae30f50685e62984084767905c7d456cdd9 (diff) | |
| download | rneovim-aa4fa2496387c962ee8b4cbd7720396ec7596dbd.tar.gz rneovim-aa4fa2496387c962ee8b4cbd7720396ec7596dbd.tar.bz2 rneovim-aa4fa2496387c962ee8b4cbd7720396ec7596dbd.zip | |
vim-patch:bfeefc4: runtime(doc): clarify the effect of exclusive single char selections (#34289)
closes: vim/vim#17410
https://github.com/vim/vim/commit/bfeefc474a3ed25852491a93e1e5610774f4de8c
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/lua/vim/_meta/vimfn.lua')
| -rw-r--r-- | runtime/lua/vim/_meta/vimfn.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua index 0bd8a08c9f..b6c531981e 100644 --- a/runtime/lua/vim/_meta/vimfn.lua +++ b/runtime/lua/vim/_meta/vimfn.lua @@ -3763,6 +3763,10 @@ function vim.fn.getreginfo(regname) end --- - It is evaluated in current window context, which makes a --- difference if the buffer is displayed in a window with --- different 'virtualedit' or 'list' values. +--- - When specifying an exclusive selection and {pos1} and {pos2} +--- are equal, the returned list contains a single character as +--- if selection is inclusive, to match the behavior of an empty +--- exclusive selection in Visual mode. --- --- Examples: >vim --- xnoremap <CR> |