From aa4fa2496387c962ee8b4cbd7720396ec7596dbd Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 3 Jun 2025 07:54:29 +0800 Subject: 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 --- runtime/lua/vim/_meta/vimfn.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime/lua/vim/_meta/vimfn.lua') 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 -- cgit