1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 04:30:24 +02:00

dana: 42145: Fix additional completion cases with option arguments.

This commit is contained in:
dana 2017-12-19 22:52:29 -06:00 committed by Peter Stephenson
parent 4b55c0f40c
commit 932ed86483
3 changed files with 29 additions and 1 deletions

View file

@ -237,6 +237,27 @@
>NO:{-a}
>NO:{-b}
tst_arguments '*'{-x+,--xxx=}':optarg:(1)' '*:operand:(a)'
comptest $'tst \t'
comptest $'tst -x \t'
comptest $'tst -x\t'
comptest $'tst --xxx=\t'
comptest $'tst --xxx \t'
comptest $'tst a -x\t'
comptest $'tst a -x \t'
comptest $'tst a --xxx=\t'
comptest $'tst a --xxx \t'
0:optarg completion following rest operand on line (workers/42141)
>line: {tst a }{}
>line: {tst -x 1 }{}
>line: {tst -x1 }{}
>line: {tst --xxx=1 }{}
>line: {tst --xxx 1 }{}
>line: {tst a -x1 }{}
>line: {tst a -x 1 }{}
>line: {tst a --xxx=1 }{}
>line: {tst a --xxx 1 }{}
tst_arguments '-a' '*::rest:{compadd - -b}'
comptest $'tst arg -\t'
0:rest arguments