From 093d0cb1cf10fac5b7cf2be389c89f3978f9cb3e Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Mon, 2 Feb 2026 16:55:41 +0000 Subject: [PATCH] runtime(doc): Clarify the behaviour of command completion functions closes: #19294 Signed-off-by: Christian Brabandt --- runtime/doc/map.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"