From 4c0d1aceec79f56097b87363cc81ffa4f6f86b32 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 3 Feb 2026 11:16:17 +0800 Subject: [PATCH] vim-patch:093d0cb: runtime(doc): Clarify the behaviour of command completion functions (#37680) closes: vim/vim#19294 https://github.com/vim/vim/commit/093d0cb1cf10fac5b7cf2be389c89f3978f9cb3e Co-authored-by: Christian Brabandt --- runtime/doc/map.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt index 8080d8245b..8764ecd875 100644 --- a/runtime/doc/map.txt +++ b/runtime/doc/map.txt @@ -1450,7 +1450,8 @@ candidates as a Vim List. Non-string items in the list are ignored. The function arguments are: ArgLead the leading portion of the argument currently being - completed on + completed on; note that this only captures the current + space-separated word, even when using "-nargs=1" CmdLine the entire command line CursorPos the cursor position in it (byte index) The function may use these for determining context. For the "custom"