diff options
author | 2006-02-07 01:15:52 +1000 | |
---|---|---|
committer | 2006-02-07 01:15:52 +1000 | |
commit | e756f7d619a7458768d59cd9bd1c97c6a1c7788a (patch) | |
tree | 5bd9af9ee0af8006a639ca23def0f9df5efef559 /complete.c | |
parent | cf3d30d4e4eb75806bfc92cf540eec6d207817ff (diff) |
Minor code cleanup, don't use expand_escape and expand_unescape any more
darcs-hash:20060206151552-ac50b-e2229d096926461f643fdcdfc79ef1ff01344a35.gz
Diffstat (limited to 'complete.c')
-rw-r--r-- | complete.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); } |