Adopt env_scoped_t::snapshot() and remove env_var_snapshot_t

Remove the env_var_snapshot_t class and switch everything to the new snapshot
function of env_scoped_t.

Fixes #5658. Fixes #5571.
This commit is contained in:
ridiculousfish
2019-04-14 15:38:58 -07:00
parent 64584a6624
commit 020d4a2848
4 changed files with 8 additions and 66 deletions

View File

@@ -2914,7 +2914,7 @@ static void test_autosuggest_suggest_special() {
static void perform_one_autosuggestion_should_ignore_test(const wcstring &command, long line) {
completion_list_t comps;
complete(command, &comps, COMPLETION_REQUEST_AUTOSUGGESTION, env_vars_snapshot_t{});
complete(command, &comps, COMPLETION_REQUEST_AUTOSUGGESTION, null_environment_t{});
do_test(comps.empty());
if (!comps.empty()) {
const wcstring &suggestion = comps.front().completion;