aboutsummaryrefslogtreecommitdiffhomepage
path: root/complete.h
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2007-01-28 23:40:59 +1000
committerGravatar axel <axel@liljencrantz.se>2007-01-28 23:40:59 +1000
commit37a95a3096e2472c0607420a8208d1cac1730369 (patch)
tree2072bc3719d9a6042332f46dcdb6f511d96b34b9 /complete.h
parentbbd229b206ed921cab13e6bf637453d2613b1989 (diff)
Make parsing of --authorative switch for complete builtin more logical. Fix bug with previous approach causing some completions to be ignored.
darcs-hash:20070128134059-ac50b-de53eb223939fbdf0d247dfbe343c62fc31cce11.gz
Diffstat (limited to 'complete.h')
-rw-r--r--complete.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/complete.h b/complete.h
index 9461cfc7..e04d0e5f 100644
--- a/complete.h
+++ b/complete.h
@@ -105,7 +105,6 @@
file completion is not performed.
\param comp A space separated list of completions which may contain subshells.
\param desc A description of the completion.
- \param authorative Whether there list of completions for this command is complete. If true, any options not matching one of the provided options will be flagged as an error by syntax highlighting.
\param condition a command to be run to check it this completion should be used. If \c condition is empty, the completion is always used.
*/
@@ -115,10 +114,17 @@ void complete_add( const wchar_t *cmd,
const wchar_t *long_opt,
int long_mode,
int result_mode,
- int authorative,
const wchar_t *condition,
const wchar_t *comp,
const wchar_t *desc );
+/**
+ Sets whether the completion list for this command is complete. If
+ true, any options not matching one of the provided options will be
+ flagged as an error by syntax highlighting.
+*/
+void complete_set_authorative( const wchar_t *cmd,
+ int cmd_type,
+ int authorative );
/**
Remove a previously defined completion