From: Christian Brabandt Date: Mon, 2 Feb 2026 16:55:41 +0000 (+0000) Subject: runtime(doc): Clarify the behaviour of command completion functions X-Git-Tag: v9.1.2128~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=093d0cb1cf10fac5b7cf2be389c89f3978f9cb3e;p=thirdparty%2Fvim.git runtime(doc): Clarify the behaviour of command completion functions closes: #19294 Signed-off-by: Christian Brabandt --- diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt index ee46180a65..7ff9cfc076 100644 --- a/runtime/doc/map.txt +++ b/runtime/doc/map.txt @@ -1,4 +1,4 @@ -*map.txt* For Vim version 9.1. Last change: 2025 Nov 09 +*map.txt* For Vim version 9.1. Last change: 2026 Feb 02 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1695,7 +1695,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"