mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-17 10:20:55 +01:00
45895: ignore deduplication patterns in _sequence
This commit is contained in:
parent
dd6e702ee4
commit
c4540e154f
3 changed files with 17 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2020-06-26 Oliver Kiddle <okiddle@yahoo.co.uk>
|
||||
|
||||
* 45895: oxiedi: Completion/Base/Utility/_sequence,
|
||||
Test/Y01completion.ztst: ignore dedup patterns in _sequence
|
||||
|
||||
2020-06-25 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 46068 (tweaked) (was: github #57): Doc/Zsh/zle.yo, README,
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
# -d : duplicate values allowed
|
||||
|
||||
local curcontext="$curcontext" nm="$compstate[nmatches]" pre qsep nosep minus
|
||||
local -a opts sep num pref suf cont end uniq dedup
|
||||
local -a opts sep num pref suf cont end uniq dedup garbage
|
||||
|
||||
zparseopts -D -a opts s:=sep n:=num p:=pref i:=pref P:=pref I:=suf S:=suf \
|
||||
q=suf r:=suf R:=suf C:=cont d=uniq M+: J+: V+: 1 2 o+: X+: x+:
|
||||
q=suf r:=suf R:=suf C:=cont F:=garbage d=uniq M+: J+: V+: 1 2 o+: X+: x+:
|
||||
(( $#cont )) && curcontext="${curcontext%:*}:$cont[2]"
|
||||
(( $#sep )) || sep[2]=,
|
||||
|
||||
|
|
|
@ -216,6 +216,16 @@ F:regression test workers/31611
|
|||
>NO:{3pm}
|
||||
>NO:{10pm}
|
||||
|
||||
comptesteval "_tst() { _arguments ':desc:_sequence compadd - 1 2 3' }"
|
||||
comptesteval "zstyle ':completion:*:tst:*' ignored-patterns 2"
|
||||
comptest $'tst 1,\t'
|
||||
comptesteval "zstyle -d ':completion:*:tst:*' ignored-patterns"
|
||||
0:-F doesn't break _sequence
|
||||
>line: {tst 1,}{}
|
||||
>DESCRIPTION:{desc}
|
||||
>NO:{2}
|
||||
>NO:{3}
|
||||
|
||||
comptest $'a=() b=(\t'
|
||||
0:multiple envarrays
|
||||
>line: {a=() b=(}{}
|
||||
|
|
Loading…
Reference in a new issue