mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 22:21:15 -03:00
__fish_complete_command: Fix --foo= logic
This was already supposed to handle `--foo=bar<TAB>` cases, except it printed the `--foo=` again, causing fish to take that as part of the token. See #9538 for a similar thing with __fish_complete_directories. Fixes #10011
This commit is contained in:
@@ -548,3 +548,7 @@ complete -C'dotty '
|
||||
# CHECK: .abc
|
||||
|
||||
rm -r $tmpdir
|
||||
|
||||
complete -C'complete --command=fish' | head -n 1 | string replace -rf '\t.*' ''
|
||||
# (one "--command=" is okay, we used to get "--command=--command="
|
||||
# CHECK: --command=fish
|
||||
|
||||
Reference in New Issue
Block a user