aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/fish_tests.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2016-01-16 15:46:43 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2016-01-16 15:46:43 -0800
commit701d1411092706a8b636ca9d5c28cbf7e3ab097d (patch)
tree00c385b6f7a34bb168077b3a39ebe8363ed98fcc /src/fish_tests.cpp
parent870593e3459d0ed831b2f7bcde53874399b3fc85 (diff)
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.
Diffstat (limited to 'src/fish_tests.cpp')
-rw-r--r--src/fish_tests.cpp2
1 files changed, 1 insertions, 1 deletions
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);