From b4c7f0e7d1c99a0356f5e48233ff008916849d1f Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Fri, 19 Sep 2014 19:45:55 -0700 Subject: 33206: fix compdescribe doc --- ChangeLog | 2 ++ Doc/Zsh/mod_computil.yo | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 857b7dba5..50d0dfc21 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2014-09-19 Barton E. Schaefer + * 33206: Doc/Zsh/mod_computil.yo: fix compdescribe doc + * 33205: Completion/Base/Utility/_describe: if passed both an array of completions and an array of display strings, keep them in sync when filtering for matches. diff --git a/Doc/Zsh/mod_computil.yo b/Doc/Zsh/mod_computil.yo index 593f85ad3..af537c9c0 100644 --- a/Doc/Zsh/mod_computil.yo +++ b/Doc/Zsh/mod_computil.yo @@ -33,12 +33,12 @@ arguments are like the definition arguments to tt(_describe) itself. Once tt(compdescribe) has been called with either the tt(-i) or the tt(-I) option, it can be repeatedly called with the tt(-g) option and -the names of five arrays as its arguments. This will step through the -different sets of matches and store the options in the first array, -the strings with descriptions in the second, the matches for these in -the third, the strings without descriptions in the fourth, and the -matches for them in the fifth array. These are then directly given to -tt(compadd) to register the matches with the completion code. +the names of four parameters as its arguments. This will step through +the different sets of matches and store the value of tt(compstate[list]) +in the first scalar, the options for tt(compadd) in the second array, +the matches in the third array, and the strings to be displayed in the +completion listing in the fourth array. The arrays may then be directly +given to tt(compadd) to register the matches with the completion code. ) findex(compfiles) item(tt(compfiles))( -- cgit 1.4.1