summaryrefslogtreecommitdiff
path: root/pcomplete.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcomplete.c')
-rw-r--r--pcomplete.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/pcomplete.c b/pcomplete.c
index 311f9674..ee3da705 100644
--- a/pcomplete.c
+++ b/pcomplete.c
@@ -941,11 +941,12 @@ unbind_compfunc_variables (exported)
$0 == function or command being invoked
$1 == command name
- $2 = word to be completed (possibly null)
- $3 = previous word
+ $2 == word to be completed (possibly null)
+ $3 == previous word
Functions can access all of the words in the current command line
- with the COMP_WORDS array. External commands cannot. */
+ with the COMP_WORDS array. External commands cannot; they have to
+ make do with the COMP_LINE and COMP_POINT variables. */
static WORD_LIST *
build_arg_list (cmd, text, lwords, ind)