From 9045b251b0337350a1cf6b29e00cbf78f08d1567 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Sun, 26 May 2024 21:31:52 -0500 Subject: [PATCH] Fix missing -- filter in `string replace` call --- share/functions/__fish_concat_completions.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_concat_completions.fish b/share/functions/__fish_concat_completions.fish index 71174f9e2..034aa62fe 100644 --- a/share/functions/__fish_concat_completions.fish +++ b/share/functions/__fish_concat_completions.fish @@ -15,7 +15,7 @@ function __fish_concat_completions -d "Generate completions that are specified a # `read` call in between () to capture the output because that breaks its connection to stdin. while read -l line; echo $line; - end | string match -er '.' | string match -rv -- $filter | string replace -r '^' -- (string replace -rf '^(.+),.*$' '$1,' $token; or echo "") + end | string match -er '.' | string match -rv -- $filter | string replace -r '^' -- (string replace -rf -- '^(.+),.*$' '$1,' $token; or echo "") return # Verified compatible with bsd awk and gnu awk