__fish_describe_command: Add missing --

Fixes #7809.
This commit is contained in:
Fabian Homborg 2021-03-10 07:17:23 +01:00
parent 76b6959cad
commit d2fc1c47ac

View file

@ -11,7 +11,7 @@ end
function __fish_describe_command -d "Command used to find descriptions for commands"
# $argv will be inserted directly into the awk regex, so it must be escaped
set -l argv_regex (string escape --style=regex "$argv")
set -l argv_regex (string escape --style=regex -- "$argv")
__fish_apropos $argv 2>/dev/null | awk -v FS=" +- +" '{
split($1, names, ", ");
for (name in names)