diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 8f9c7baa21..2a909b2544 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -1,4 +1,4 @@ -*builtin.txt* For Vim version 9.1. Last change: 2025 Jul 03 +*builtin.txt* For Vim version 9.1. Last change: 2025 Jul 04 VIM REFERENCE MANUAL by Bram Moolenaar @@ -4203,8 +4203,9 @@ getcmdcomplpat() *getcmdcomplpat()* getcmdcompltype([{pat}]) *getcmdcompltype()* Return the type of command-line completion using {pat}. - If {pat} is omited, only works when the command line is being - edited, thus requires use of |c_CTRL-\_e| or |c_CTRL-R_=|. + If {pat} is omited, the current command-line is used, which + only works when the command line is being edited and requires + use of |c_CTRL-\_e| or |c_CTRL-R_=|. See |:command-completion| for the return string. Also see |getcmdtype()|, |setcmdpos()|, |getcmdline()|, diff --git a/runtime/doc/version9.txt b/runtime/doc/version9.txt index 75d14011ab..e88af7d96d 100644 --- a/runtime/doc/version9.txt +++ b/runtime/doc/version9.txt @@ -41607,7 +41607,7 @@ Completion: ~ - allow to complete directories from 'cdpath' for |:cd| and similar commands, add the "cd_in_path" completion type for e.g. |:command-complete| and |getcompletion()| -- |getcompletion()| now accepts a pat and returns the completion type for the +- |getcmdcompltype()| now accepts a pat and returns the completion type for the {pat} argument - allow to complete shell commands and files using the new shellcmdline completion type using |:command-complete| and |getcmdcomplpat()|