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 * Wrong mouse binding triggered when doing two mouse selections in
very quick (< 300ms) succession very quick (< 300ms) succession
(https://codeberg.org/dnkl/foot/issues/883). (https://codeberg.org/dnkl/foot/issues/883).
* Bash completion giving an error when completing a list of short
options
### Security ### Security

View file

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

View file

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