From d55113b5b5e242b1ccfd7d8c916c38b7092b0bd3 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Mon, 16 May 2016 21:06:29 -0700 Subject: trivial fix to fish_tests.cpp Fix a minor bogosity I noticed while building fish on OS X Snow Leopard. It's technically not a bug because only old compilers complain about the original statement but this change makes the one line this changes consistent with the rest of the fish code. --- src/fish_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fish_tests.cpp') diff --git a/src/fish_tests.cpp b/src/fish_tests.cpp index 8bf58e1e..8c1866b1 100644 --- a/src/fish_tests.cpp +++ b/src/fish_tests.cpp @@ -3527,7 +3527,7 @@ static void test_highlighting(void) { do_test(expected_colors.size() == text.size()); std::vector colors(text.size()); - highlight_shell(text, colors, 20, NULL, env_vars_snapshot_t()); + highlight_shell(text, colors, 20, NULL, env_vars_snapshot_t::current()); if (expected_colors.size() != colors.size()) { err(L"Color vector has wrong size! Expected %lu, actual %lu", expected_colors.size(), -- cgit v1.2.3