mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 00:41:15 -03:00
Minor code cleanup, don't use expand_escape and expand_unescape any more
darcs-hash:20060206151552-ac50b-e2229d096926461f643fdcdfc79ef1ff01344a35.gz
This commit is contained in:
@@ -846,7 +846,7 @@ static const wchar_t *complete_get_desc_suffix( const wchar_t *suff_orig )
|
||||
}
|
||||
}
|
||||
|
||||
wchar_t *tmp = expand_escape( suff, 0 );
|
||||
wchar_t *tmp = escape( suff, 0 );
|
||||
free(suff);
|
||||
suff = tmp;
|
||||
|
||||
@@ -1088,7 +1088,7 @@ static void complete_cmd_desc( const wchar_t *cmd, array_list_t *comp )
|
||||
return;
|
||||
}
|
||||
|
||||
esc = expand_escape( cmd_start, 1 );
|
||||
esc = escape( cmd_start, 1 );
|
||||
|
||||
lookup_cmd = wcsdupcat( L"__fish_describe_command ", esc );
|
||||
free(esc);
|
||||
@@ -1524,7 +1524,7 @@ void complete_load( wchar_t *cmd,
|
||||
{
|
||||
if( !tm || (*tm != buf.st_mtime ) )
|
||||
{
|
||||
wchar_t *esc = expand_escape( (wchar_t *)path.buff, 1 );
|
||||
wchar_t *esc = escape( (wchar_t *)path.buff, 1 );
|
||||
wchar_t *src_cmd = wcsdupcat( L". ", esc );
|
||||
|
||||
if( !tm )
|
||||
@@ -2134,7 +2134,7 @@ static void append_switch( string_buffer_t *out,
|
||||
if( !argument || argument==L"" )
|
||||
return;
|
||||
|
||||
esc = expand_escape( argument, 1 );
|
||||
esc = escape( argument, 1 );
|
||||
sb_printf( out, L" --%ls %ls", opt, esc );
|
||||
free(esc);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user