mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-04 15:51:15 -03:00
Changes to make autosuggestion smarter about not suggesting commands that could never succeed.
This commit is contained in:
@@ -716,7 +716,7 @@ void parser_t::destroy()
|
||||
lineinfo = 0;
|
||||
}
|
||||
|
||||
forbidden_function.resize(0);
|
||||
forbidden_function.clear();
|
||||
|
||||
}
|
||||
|
||||
@@ -2409,7 +2409,7 @@ int parser_t::eval( const wcstring &cmdStr, io_data_t *io, enum block_type_t blo
|
||||
|
||||
if( block_type == SUBST )
|
||||
{
|
||||
forbidden_function.resize(0);
|
||||
forbidden_function.clear();
|
||||
}
|
||||
|
||||
CHECK_BLOCK( 1 );
|
||||
|
||||
Reference in New Issue
Block a user