Merge branch 'fix-bash-completions'

This commit is contained in:
Daniel Eklöf 2022-02-03 19:33:51 +01:00
commit 63b12d4cdc
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 4 additions and 2 deletions

View file

@ -115,6 +115,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