diff options
author | axel <axel@liljencrantz.se> | 2006-01-31 02:51:50 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-01-31 02:51:50 +1000 |
commit | 521d09b6d0264aaac17b9359ebcb1a0cb6ca8906 (patch) | |
tree | 7297a413ff9a5d020c1691e7727e3b22a0bc8175 /highlight.c | |
parent | 3efb0bf5cf7b799b8df039e4fa3dd593248dc415 (diff) |
Add support for calculating completions for arbitrary commands through the 'complete' builtin
darcs-hash:20060130165150-ac50b-5e2ef3bb0298dd5e1a5d6fbdade314cc73ef36f3.gz
Diffstat (limited to 'highlight.c')
-rw-r--r-- | highlight.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/highlight.c b/highlight.c index 51d5c885..79cf45d3 100644 --- a/highlight.c +++ b/highlight.c @@ -18,6 +18,7 @@ #include "tokenizer.h" #include "proc.h" #include "parser.h" +#include "parse_util.h" #include "builtin.h" #include "function.h" #include "env.h" @@ -365,11 +366,11 @@ void highlight_shell( wchar_t * buff, while( 1 ) { wchar_t *begin, *end; - - if( expand_locate_subshell( subpos, - &begin, - &end, - 1) <= 0) + + if( parse_util_locate_cmdsubst( subpos, + (const wchar_t **)&begin, + (const wchar_t **)&end, + 1) <= 0) { break; } |