mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 09:22:47 +08: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
|
@ -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 New Issue
Block a user