Fix missing -- filter in string replace call

This commit is contained in:
Mahmoud Al-Qudsi 2024-05-26 21:31:52 -05:00
parent 114856e1d9
commit 9045b251b0

View file

@ -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