diff options
author | Mikael Magnusson <mikachu@gmail.com> | 2015-07-15 13:47:17 +0200 |
---|---|---|
committer | Mikael Magnusson <mikachu@gmail.com> | 2015-07-15 13:47:33 +0200 |
commit | b6a2f116a1ebd403b9cd1967a7eae6b634bba6a5 (patch) | |
tree | 40e4ec3993a5f26e656ac08b96f6865c6d5776c1 /Completion/Zsh | |
parent | b230e6d11d78271f3fc2492b51ddf8f7c109b500 (diff) | |
download | zsh-b6a2f116a1ebd403b9cd1967a7eae6b634bba6a5.tar.gz zsh-b6a2f116a1ebd403b9cd1967a7eae6b634bba6a5.tar.xz zsh-b6a2f116a1ebd403b9cd1967a7eae6b634bba6a5.zip |
unposted: _ps1234: Fix ternary test char completion
Diffstat (limited to 'Completion/Zsh')
-rw-r--r-- | Completion/Zsh/Type/_ps1234 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Zsh/Type/_ps1234 b/Completion/Zsh/Type/_ps1234 index 76ba1e3c6..125a62152 100644 --- a/Completion/Zsh/Type/_ps1234 +++ b/Completion/Zsh/Type/_ps1234 @@ -15,7 +15,7 @@ while (( changed )); do compset -P '%[DFK](\\|){[^}]#}' && changed=1 # formats with arg: %x{...} compset -P '%[0-9-\\]#[^DFK(0-9-<>\\\[]' && changed=1 # normal formats compset -P '%[0-9-\\]#(<[^<]#<|>[^>]#>|\[[^\]]#\])' && changed=1 # truncations - compset -P '%[0-9-\\]#(\\|)\(??|[^%]' && changed=1 # start of ternary + compset -P '%[0-9-\\]#(\\|)\([0-9]#[^0-9]?|[^%]' && changed=1 # start of ternary compset -P '[^%]##' && changed=1 # sundry other characters # %D/%F/%K without a following { ... } [[ $PREFIX = %(-|)<->#[DFK](\\|)[^{\\]* ]] && @@ -59,12 +59,12 @@ if compset -P '%[FK]'; then fi fi -if compset -P '%[0-9-\\]#\(?'; then +if compset -P '%[0-9-\\]#\([0-9]#[^0-9]'; then compset -S '*' _delimiters && ret=0 elif compset -P '%[0-9-\\]#[<>\]]'; then _message -e replacements 'replacement string' -elif compset -P '%[0-9-\\]#(\\|)\('; then +elif compset -P '%[0-9-\\]#(\\|)\([0-9]#'; then compset -S '[.:+/-%]*' || suf=( -S . ) compset -S '*' specs=( |