From 701d1411092706a8b636ca9d5c28cbf7e3ab097d Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 16 Jan 2016 15:46:43 -0800 Subject: Clean up complete_entry_opt_t Rather than storing short and long options separately, using a complicated set of invariants, store them in a single string and use an explicit type complete_option_type_t to track how they are interpreted. --- 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 6acefbaa..dc999a36 100644 --- a/src/fish_tests.cpp +++ b/src/fish_tests.cpp @@ -2157,7 +2157,7 @@ static void test_complete(void) do_test(completions.size() == 0); /* Trailing spaces (#1261) */ - complete_add(L"foobarbaz", false, 0, NULL, 0, NO_FILES, NULL, L"qux", NULL, COMPLETE_AUTO_SPACE); + complete_add(L"foobarbaz", false, wcstring(), option_type_args_only, NO_FILES, NULL, L"qux", NULL, COMPLETE_AUTO_SPACE); completions.clear(); complete(L"foobarbaz ", completions, COMPLETION_REQUEST_DEFAULT); do_test(completions.size() == 1); -- cgit v1.2.3