From 7577fa1b668ea81eb9b7b9af690a4161187129dd Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 3 Nov 2023 13:08:44 +1100 Subject: Use explicit target types for gather calls to bypass clang regression Since clang-16 there has been a regression in the P0522R0 support. (Bug report at https://github.com/llvm/llvm-project/issue/63281) Closes #4892 --- src/normal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/normal.cc') diff --git a/src/normal.cc b/src/normal.cc index 1ce53158..69fc9285 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -998,7 +998,7 @@ void use_selection_as_search_pattern(Context& context, NormalParams params) smart and is_bow(buffer, beg) ? "\\b" : "", escape(buffer.string(beg, end), "^$\\.*+?()[]{}|", '\\'), smart and is_eow(buffer, end) ? "\\b" : ""); - }) | gather(); + }) | gather>(); String pattern = join(patterns, '|', false); const char reg = to_lower(params.reg ? params.reg : '/'); -- cgit v1.2.3