aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--fish_tests.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/fish_tests.cpp b/fish_tests.cpp
index 6e293514..eca03097 100644
--- a/fish_tests.cpp
+++ b/fish_tests.cpp
@@ -1866,6 +1866,11 @@ static void test_complete(void)
complete(L"echo (builtin scuttlebut", completions, COMPLETION_REQUEST_DEFAULT);
do_test(completions.size() == 0);
+ /* Not after a redirection */
+ completions.clear();
+ complete(L"echo hi > scuttlebut", completions, COMPLETION_REQUEST_DEFAULT);
+ 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);
completions.clear();