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/options.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'runtime/lua/vim/_meta/options.lua') diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index b04d484e6c..957e8f9438 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -5414,9 +5414,14 @@ vim.go.sect = vim.go.sections --- the end of line the line break still isn't included. --- When "exclusive" is used, cursor position in visual mode will be --- adjusted for inclusive motions `inclusive-motion-selection-exclusive`. ---- Note that when "exclusive" is used and selecting from the end ---- backwards, you cannot include the last character of a line, when ---- starting in Normal mode and 'virtualedit' empty. +--- +--- Note: +--- - When "exclusive" is used and selecting from the end backwards, you +--- cannot include the last character of a line, when starting in Normal +--- mode and 'virtualedit' empty. +--- - when "exclusive" is used with a single character visual selection, +--- Vim will behave as if the 'selection' is inclusive (in other words, +--- you cannot visually select an empty region). --- --- @type 'inclusive'|'exclusive'|'old' vim.o.selection = "inclusive" -- cgit