mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 19:31:14 -03:00
Clean up uses of completion_t
This commit is contained in:
@@ -870,8 +870,7 @@ static int wildcard_expand_internal( const wchar_t *wc,
|
||||
else
|
||||
{
|
||||
res = 1;
|
||||
completion_t data_to_push;
|
||||
data_to_push.completion = base_dir;
|
||||
completion_t data_to_push(base_dir);
|
||||
if ( std::find( out.begin(), out.end(), data_to_push ) != out.end() ){
|
||||
out.push_back( data_to_push);
|
||||
}
|
||||
@@ -944,9 +943,7 @@ static int wildcard_expand_internal( const wchar_t *wc,
|
||||
}
|
||||
else
|
||||
{
|
||||
completion_t data_to_push;
|
||||
data_to_push.completion = long_name;
|
||||
out.push_back( data_to_push );
|
||||
out.push_back( completion_t(long_name) );
|
||||
}
|
||||
res = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user