mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-16 15:21:14 -03:00
Eliminate env_push and env_pop
This commit is contained in:
@@ -1755,7 +1755,8 @@ static void test_ifind_fuzzy() {
|
||||
|
||||
static void test_abbreviations() {
|
||||
say(L"Testing abbreviations");
|
||||
env_push(true);
|
||||
auto &vars = parser_t::principal_parser().vars();
|
||||
vars.push(true);
|
||||
|
||||
const std::vector<std::pair<const wcstring, const wcstring>> abbreviations = {
|
||||
{L"gc", L"git checkout"},
|
||||
@@ -1822,7 +1823,7 @@ static void test_abbreviations() {
|
||||
expanded = reader_expand_abbreviation_in_command(L"command gc", wcslen(L"command gc"), &result);
|
||||
if (expanded) err(L"gc incorrectly expanded on line %ld", (long)__LINE__);
|
||||
|
||||
env_pop();
|
||||
vars.pop();
|
||||
}
|
||||
|
||||
/// Test path functions.
|
||||
|
||||
Reference in New Issue
Block a user