Fix bash completion for lists of short options

This commit is contained in:
Nicolai Dagestad 2022-02-03 17:31:57 +01:00
parent ab6b1b3679
commit 0f49a8a033
3 changed files with 4 additions and 2 deletions

View file

@ -105,6 +105,8 @@
* Wrong mouse binding triggered when doing two mouse selections in
very quick (< 300ms) succession
(https://codeberg.org/dnkl/foot/issues/883).
* Bash completion giving an error when completing a list of short
options
### Security

View file

@ -75,7 +75,7 @@ _foot()
: # don't autocomplete for these flags
else
# complete commands from $PATH
COMPREPLY=( $(compgen -c ${cur}) )
COMPREPLY=( $(compgen -c -- ${cur}) )
fi
return 0

View file

@ -66,7 +66,7 @@ _footclient()
: # don't autocomplete for these flags
else
# complete commands from $PATH
COMPREPLY=( $(compgen -c ${cur}) )
COMPREPLY=( $(compgen -c -- ${cur}) )
fi
return 0