mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 23:11:14 -03:00
Make sure that command specific completions can handle input strings with wildcards reasonably well
darcs-hash:20060219011432-ac50b-89a73a3d414f2dbd8a213b851fcb1c494e022eae.gz
This commit is contained in:
14
complete.c
14
complete.c
@@ -1001,17 +1001,21 @@ static void copy_strings_with_prefix( array_list_t *comp_out,
|
||||
array_list_t *possible_comp )
|
||||
{
|
||||
int i;
|
||||
wchar_t *wc;
|
||||
wchar_t *wc, *tmp;
|
||||
|
||||
wc = expand_one( 0,
|
||||
tmp = expand_one( 0,
|
||||
wcsdup(wc_escaped), EXPAND_SKIP_SUBSHELL | EXPAND_SKIP_WILDCARDS);
|
||||
if(!wc)
|
||||
if(!tmp)
|
||||
return;
|
||||
|
||||
if( wc[0] == L'~' )
|
||||
if( tmp[0] == L'~' )
|
||||
{
|
||||
wc=expand_tilde(wc);
|
||||
tmp=expand_tilde(wc);
|
||||
}
|
||||
|
||||
wc = parse_util_unescape_wildcards( tmp );
|
||||
free(tmp);
|
||||
|
||||
|
||||
// int str_len = wcslen( str );
|
||||
for( i=0; i<al_get_count( possible_comp ); i++ )
|
||||
|
||||
Reference in New Issue
Block a user