From a19d9b2e73cbab3b923319b69d69c50aabb3c1fc Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 22 Sep 2019 14:06:14 -0700 Subject: [PATCH] Add a test for #6130 --- src/fish_tests.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fish_tests.cpp b/src/fish_tests.cpp index 5ef421ae7..6c7f0565c 100644 --- a/src/fish_tests.cpp +++ b/src/fish_tests.cpp @@ -2869,6 +2869,9 @@ static void test_completion_insertions() { TEST_1_COMPLETION(L"foo^", L"bar", COMPLETE_REPLACES_TOKEN, false, L"bar ^"); TEST_1_COMPLETION(L"'foo^", L"bar", COMPLETE_REPLACES_TOKEN, false, L"bar ^"); + + // See #6130 + TEST_1_COMPLETION(L": (:^ ''", L"", 0, false, L": (: ^''"); } static void perform_one_autosuggestion_cd_test(const wcstring &command, const wcstring &expected,