diff options
| author | Nicolai Dagestad <nicolai@dagestad.fr> | 2022-02-03 16:31:57 +0000 |
|---|---|---|
| committer | Nicolai Dagestad <nicolai@dagestad.fr> | 2022-02-03 17:49:54 +0000 |
| commit | 0f49a8a0338dab302db877631068c0469cb88e19 (patch) | |
| tree | 20ece6c6cfe6fd0cac2e1ab2fcc4751867de6b70 | |
| parent | install: remove reference to the Arch AUR package (diff) | |
Fix bash completion for lists of short options
| -rw-r--r-- | CHANGELOG.md | 2 | ||||
| -rw-r--r-- | completions/bash/foot | 2 | ||||
| -rw-r--r-- | completions/bash/footclient | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f267fa2..770a64dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 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 |
