diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-09 14:01:32 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-09 14:01:32 +0000 |
commit | 415b5f4cc2ef54943d178bef0c55b2517afc6904 (patch) | |
tree | 717511ba6e680a44b96862dabb84cf287e7645a5 /Completion/User/_patch | |
parent | 6e873b4fec9df1d9cefec71098d3045a03088c52 (diff) | |
download | zsh-415b5f4cc2ef54943d178bef0c55b2517afc6904.tar.gz zsh-415b5f4cc2ef54943d178bef0c55b2517afc6904.tar.xz zsh-415b5f4cc2ef54943d178bef0c55b2517afc6904.zip |
zsh-workers/7744
Diffstat (limited to 'Completion/User/_patch')
-rw-r--r-- | Completion/User/_patch | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Completion/User/_patch b/Completion/User/_patch index 9c5bc0269..6be2afd62 100644 --- a/Completion/User/_patch +++ b/Completion/User/_patch @@ -1,7 +1,9 @@ #compdef patch +local comp_p='compadd "$expl[@]" -S0 -r "1-9" - ""' + _arguments -s \ - '(--strip)-p+:number:(0)' \ + '(--strip)-p+:number:'"{$comp_p}" \ '(--fuzz)-F+:lines:' \ '(--context)-c' \ '(--ed)-e' \ @@ -30,7 +32,8 @@ _arguments -s \ ':original file:_files' \ ':patch file:_files' \ -- \ - '*=NUM*:number:(0)' \ + '*strip=NUM*:number:'"{$comp_p}" \ + '*get=NUM*:get files from RCS etc:' \ '*=LINES*:lines:' \ '*=PATCHFILE*:patch file:_files' \ '*=FILE*:file:_files' \ |