aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-06-03 07:54:29 +0800
committerGitHub <noreply@github.com>2025-06-02 23:54:29 +0000
commitaa4fa2496387c962ee8b4cbd7720396ec7596dbd (patch)
tree820d3dd0a4f55c1ccc22aca0fa25fdb14e40476d /src/nvim/eval.lua
parent9c9c7ae30f50685e62984084767905c7d456cdd9 (diff)
downloadrneovim-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 'src/nvim/eval.lua')
-rw-r--r--src/nvim/eval.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua
index 534ae610d4..7b2eda67aa 100644
--- a/src/nvim/eval.lua
+++ b/src/nvim/eval.lua
@@ -4660,6 +4660,10 @@ M.funcs = {
- 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>