mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
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.
This commit is contained in:
parent
51468b7646
commit
d55113b5b5
1 changed files with 1 additions and 1 deletions
|
@ -3527,7 +3527,7 @@ static void test_highlighting(void) {
|
|||
do_test(expected_colors.size() == text.size());
|
||||
|
||||
std::vector<highlight_spec_t> 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(),
|
||||
|
|
Loading…
Reference in a new issue