mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 06:31:12 -03:00
Simple test for completing redirections
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user