diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d4a4a34..3497d439 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/completions/bash/foot b/completions/bash/foot index f9d9d0fd..1fdab062 100644 --- a/completions/bash/foot +++ b/completions/bash/foot @@ -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 diff --git a/completions/bash/footclient b/completions/bash/footclient index fea45945..9f752641 100644 --- a/completions/bash/footclient +++ b/completions/bash/footclient @@ -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