Changes to make autosuggestion smarter about not suggesting commands that could never succeed.

This commit is contained in:
ridiculousfish
2012-02-16 00:24:27 -08:00
parent a92d9d442b
commit a08450bcb6
11 changed files with 536 additions and 255 deletions

View File

@@ -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 );